Custom Provider, getting 401 on redirect #2814
-
I'm trying to set up a custom provider to login via an Invision Power Board forum, I'm halfway there but I've been getting 401 errors when requesting the token and I'm not sure how to fix it. Invision Power Board does offer some (basic) docs on how to oauth but they're not great. This is my provider thus far:
It successfully sends me to the authorization page and then redirects me to
I think it's because the token request is missing parameters. The whole process works if I make the request like this:
But I'm unsure how to pass these parameters to the I think IPB needs these to be passed as a www-form-urlencoded body or it won't work. I haven't been able to find any workarounds unfortunately. Is there any way to get this working with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The issue seems to be when getting the profile:
Just a guess, but maybe try without a trailing slash It's also possible that some of this would be needed here: #2717 I think If you define It is available here: #2717 (comment) until not merged. |
Beta Was this translation helpful? Give feedback.
The issue seems to be when getting the profile:
Just a guess, but maybe try without a trailing slash
/
, like so:userinfo: "https://www.example.net/api/core/me"
. Maybe their backend doesn't handle the request with a trailing slash?It's also possible that some of this would be needed here: #2717
I think
client_id
,code
,redirect_uri
,client_secret
,grant_type
are params you don't have to set yourself, but inferred byopenid-client
.If you define
authorization
as an object, there is arequest
option, where you can create the request however you want. It could be useful to get it to work…