I’m doing a chatbot. For now : Users can log filling manually their Channel Name and OAuth Token.
In Progress : I’m trying to do a Log In with Twitch Button.
I managed to send the user on the Twitch authentication page string url = String.Format("https://id.twitch.tv/oauth2/authorize?response_type=token&client_id={0}&redirect_uri={1}&scope=chat:read&force_verify=true&state=123456", Properties.Settings.Default.ClientID, "https://twitchapps.com/tokengen/"); Process.Start(url);
This send me to the twitch authentication page and then show me a page with a token (Twitch OAuth Token Generator)
(123456abcdefghijABCDEFGHIJ not being my real access token but you got it )
I would like to know :
Can I get back to my application the user channel name and his token automatically so he doesn’t have to copy and paste it manually ?
(and how ? ^^)
First, I tried getting the “Authorization code flow” instead of “impicit auth” (if I got this right, this means changing “response_type=token” to “response_type=code” ?)
But now when i Log in I have this :
There is still some stuff I don’t understand sorry
I don’t know a lot about web programming so I don’t even know where to start.
Should I still use the “https://id.twitch.tv/oauth2/authorize?.…” but change the redirect_uri ?
Cause at first I was trying to redirect to LocalHost but it wasn’t working.