You already have your own Twitch OAuth Client ID and already work with it.You do not want the Easypromos name to appear when users login with Twitch.You use your own domain to share your promotion.Meaning that the same AuthCode that was used to link a Player with a Twitch account cannot be used again.In promotions where you have enabled the Twitch Login system, you can use your own OAuth Client ID. One Important Note: AuthCodes can only be used once. This is the shortest way to creating a new Player with a Twitch Login. The best way to use this functionality is to create your players with the Login with Twitch method whilst supplying the CreatePlayer flag. Upon receiving the Authorisation Code from Twitch using the RedirectURL, it can then be sent up to either Link with Twitch or Login with Twitch if an account id already linked. This should be the last piece of configuration you need to allow Twitch logins with ChilliConnect. Edit these details so that they mirror the details given to the Twitch Configuration. Under the "Game" section, navigate to the "Settings" tab and scroll down until a section titled "Twitch OAuth" is seen. ![]() The ClientID, the ClientSecret and this RedirectURL all need to be copied into ChilliConnect. The full process is covered properly on the OAuth Website but the general gist is that the Application will override a URL pattern to launch the Application when that URL pattern is detected, so by overriding the URL pattern newapp://callback and inputting the same URL into the RedirectURL Configuration on Twitch, the app will be launched to handle the callback from Twitch, and grab the Authorisation Code from the URL. There are a few ways to handle this process on Mobile Devices, one of the main ones being App-Claimed URLS. ![]() So if you have entered as the redirect URL, after the user has successfully entered login details the device will then attempt to open the URL (with authCode being the string that we will need). After the user has successfully logged in, the Twitch service will then Redirect the user LOCALLY to the RedirectURL specified on this configuration screen. In a nutshell, when your application comes to ask the Player to sign in with Twitch, the Player will be presented with a Twitch login screen. The RedirectURL is slightly more involved in the development process of your Application This is the base URL that Twitch will use to supply your Application with the Authorisation Code that ChilliConnect needs to actually get back the users details. The three details you will ultimately need are on this page the ClientID and ClientSecret are simple to understand, they are used during the server exchange to identify ChilliConnect to Twitch as authorised to use the API for your Application. Click the manage button in order to be taken into an "Edit" screen where more options are now available. Once you have finished putting in these details you will be redirected back to the main Apps dashboard screen, with your new Application listed. The main detail here is the OAuth RedirectURL, but leave it blank or placeholder for now as we can come back to that shortly it can be edited at anytime. You should be presented with a short setup wizard that will need a few details before continuing. If you have registered a Twitch Application before it will appear on this screen, but in order to create a new Application select the "Register Your Application" button on the top right of the table. Once in the dashboard go to the Apps section by clicking on the VIEW APPS button. ![]() You will need to first sign-up for a Twitch Account, then navigate to the Developers Dashboard. In order to use Twitch for authentication into ChilliConnect you will need the following details to allow ChilliConnect -> Twitch Communication: ClientID, ClientSecret and a RedirectURL. This tutorial covers how to set up a Developer Account with Twitch and where to find the ClientID and Secret, as well as how to get/use the RedirectURL. Choosing the right Client-Server relationship
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |