i don’t want allow any 3rd party to access my account as i found in these forums suggested many times and i want to create a authenticated token that is working and valid for my chat bot .
the main reason that i don’t want allow any 3rd party site access my account is that i had very bad experience from twitter and Facebook where the client sends malicious links to the contacts of a user and without his approval of course .
for the reference the python code i am using to generate the authenticated token is this :
also the registration page in dev apps site reports that the chat application app is working as you can see in the image … https://i.imgur.com/SDepcRd.jpg
So , what is the reason the chat bot is not connected from my local server and stacked in this message ?
Is there any network ports i need to open locally and forward to work as it should be or the bot doesn’t need to act like a server like i am doing in twitter and google ?
You are generating an app access token with the client credentials flow so that’s why it is not working. You need a user access token. Use either OAuth Implicit Code Flow or OAuth Authorization Code Flow (or the OIDC variants).
Keep in mind since this is a user access token the user whose account will be connecting to chat needs to accept the request via their browser. It cannot be done completely server-side.
i looked again the differences between all these authentication modes and i realized that i can not create str8 the auth token since every method of these return to url that need to redirected by a web server …
i am creating now a django local server to handle the redirection but as i said in my main post for me the usage of a 3rd site for authentication token is a backdoor to my account , since i will authorize a site to view and most important manage my account
so for me now there is only one way … find a way to create locally the authentication token or leave the twitch platform
both 1) and 2) ways in OAuth Implicit Code Flow (User Access Tokens) return the whole HTML login page of twitch.tv with GET request and not an authentication token and if i open it with browser the CAPTCHA fails “Cannot contact reCAPTCHA. Check your connection and try again” .
is there any value inside this HTML page that is the authenticate token ?
so barry , there is not a simple way without a web server to create an authentication token in twitch because this authentication loop is actually a web server