What are organizations?
Introduction​
Organizations are the base of Well-Played.gg system.
Each Organization has its own tournament platform, and allows the owner to create and manage their own tournament
platform in a simple manner.
Data ownership​
The organization's data belongs to the organization, and the organization only.
That means that organization datas (including user datas) are only accessible through permissions
and cannot be accessed from another organization.
Membership​
Each organization provide an in-depth user and permissions management system
This system allows the owner or permitted users to manage and adapt user permissions on the platform
Permissions ranges from creating a tournament to managing them
API Access​
API Access is partitioned by Organizations, each Organization has its own data and is only accessible by them
API Limits are linked to the Organization's own requests
The platform​
As stated, each Organization has its own platform to work with
When an owner creates its organization, a new subdomain and a new website is generated for this organization
The subdomain has the following format: <choosen-subdomain>.well-played.gg
It is also possible to use a custom domain linked to the platform
Each platform also provides its own subset of widgets that can be directly included to any website
Create your own organization​
You can simply create your own organization by logging in to warrior.well-played.gg

In the Dashboard sub-menu, choose Create an ogranization

Fill the required fields and select your identity provider (see below), this identity provider can be changed later

When you are done, you can click on Start your own tournament platform now!

A modal will be displayed with a warning and a link, click on the link's field, this will copy the link in your
clipboard and open your newly created platform

Your clipboard link is very important and you will need it in the provider configuration part
Your platform is now created, do not forget to be the first one to login on your platform, this is mandatory because
the first user to connect will be assigned as the owner of the organization and given admin rights on it.
This is due to the fact that all organizations data are owned by the organization and accessible only via the
organization's permissions. Including users.
You are now owner of your own tournament platform, congratulations!
Configure an identity provider​
Twitch​
First, select Twitch as an Identity provider when you create your organization

To configure your Twitch identity provider, you will need to first connect to
Twitch's developer platform by clicking on the login button at the top right
Then, click on Your Console on the top right
You will now be able to register a new application by clicking the Register You Application button

Fill the name of the application as you like, then paste the URL that has been copied in your clipboard beforehand
in the OAuth Redirect URLs field

Finalise your application registration, then click on manage in your applications list
Finally, click on New secret to generate a new secret, and copy and paste your Client ID and Client Secret to
the provided fields on the Well-Played organization creation page

Be careful while copying your Client ID and Client Secret, they have to be exact for your first login. If you have
entered incorrectly these fields, you will be prompted with an error if you try to log yourself in. If it is the case
please contact the support