Unable to login with OpenID Connect

After sending the user to the oauth2/authorize endpoint, my request is getting redirected to passport.twitch.tv, then to my redirect url with “#error=server_error&error_description=Unexpected+error%2C+authorization+request+could+not+be+completed”

What’s really confusing me is requesting that url in Postman seems to be returning a html login page correctly.

The url I am generating is something like this:
https://api.twitch.tv/kraken/oauth2/authorize?response_type=id_token+token&client_id=my_client_id&state=zvKLRSntCxmcmfVJyyxB2sqopcOrOL97MX7b7QYj&redirect_uri=http%3A%2F%2Fmy_url%2Findex.html&scope=openid&nonce=zvKLRSntCxmcmfVJyyxB2sqopcOrOL97MX7b7QYj

What could be the issue?

Edit: I realised the reason Postman was different was because I wasn’t already logged in, logging out gets me a twitch login screen, but after logging in I get the same error sent to my redirect url.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.