Attempting to add a Twitch provider #112
Replies: 4 comments 2 replies
-
Ah, I forgot, the endpoints are located here in this package: https://pkg.go.dev/golang.org/x/oauth2/twitch |
Beta Was this translation helpful? Give feedback.
-
to me, it looks like your infoURL is wrong or at least expects some parameters. Have you checked their API for something like |
Beta Was this translation helpful? Give feedback.
-
not sure if helpful, but I have seen someone on the internet saying in regard to |
Beta Was this translation helpful? Give feedback.
-
After doing a bit more research, it doesn't look like I can use Twitch for social login in the way I want - the
I'm not sure if there's a way to add in a step there between 3 and 4 where I make another request to |
Beta Was this translation helpful? Give feedback.
-
Taking a break from banging my head against the wall with #111 and am trying to add a Twitch oauth2 provider - I saw that battlenet had one and figured it might help me get my bearings. I've got the following code down so far:
But when running it through the example page in the repo I get the following:
Note the:
2022/02/21 23:24:38.789 [DEBUG] {provider/oauth2.go:186 provider.Oauth2Handler.AuthHandler} got raw user info map[error:Unauthorized message:Client ID is missing status:401]
I'm not sure what's going on there but I feel like I'm missing something? The auth info is all laid out here pretty plainly, so I'm not 100% sure what I'm missing exactly
Beta Was this translation helpful? Give feedback.
All reactions