-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong method to fetch token for openID connect #2421
Comments
Hi, I am maintaining
|
From the log, it seems you are try to use OAuth2 login but not OpenID connect ? |
From an authorization_code flow perspective the two are the same (only in OIDC you must request the openid scope). Either way, the token_endpoint request must use a POST, does it? |
And the "/.well-known/openid-configuration.json": |
No improvement in Gitea v1.2.0-rc2. |
@strk maybe you can see this? |
No improvement in Gitea v1.2.0-rc3. |
No improvement in Gitea v1.2.0. #618 still doesn't work for me. |
No improvement in Gitea v1.3.0-rc1. |
No improvement in Gitea v1.3.2. @strk please state something. |
@Lichtjaeger re "#618 still doesn't work for me." you mean you don't haven an |
Sorry, I was looking for a reference to my problem and only found this. Yes, I don't have an OpenID-2.0 Server. I tried to use OpenID connect from the start. |
@Lichtjaeger have you also configured the yammer provider? This error message is only displayed when using the yammer provider (https://github.com/markbates/goth/search?q=%22cannot+fetch+token%22&type=) |
I eventually found the problem. In my NginX loadbalancer I used Now I use Requesting the token without https results in:
Requesting without forcing SSL results in:
|
The error for 308 statuses is solved thru reconfiguration of the But there is still the error with the "sub" claim. The debug output of the oidc-provider is:
|
OK, I changed the type of the "sub" from number to string and now it works. |
Great to hear you succeeded in that!
Are you going to write a blog post about how to setup OpenID Connect
server and Gitea to work with it ?
Maybe publishing it on https://github.com/go-gitea/blog ?
|
I can try to make time for it. PS: I have a suggestion for improvement. oidc provides a lot of other claims (for example email, family_name, given_name, name, preferred_username). The discovery result can tell you if they are available. You could use them to autofill the registration form. |
I can try to make time for it.
Thanks!
PS: I have a suggestion for improvement. oidc provides a lot of other claims (for example email, family_name, given_name, name, preferred_username). The discovery result can tell you if they are available. You could use them to autofill the registration form.
Great idea, please file an enhancement ticket for that, so you don't
forget. You can send a PR later :)
|
[x]
):Description
Hi, I try to implement an openID connect Login with oidc-provider for Node.js.
But I get "method not allowed" errors if I test this solution. I opened an Issue at the provider page ( panva/node-oidc-provider#150 ) and the answer was, that the client used the wrong method to request the token.
The text was updated successfully, but these errors were encountered: