Skip to content
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 token endpoint value caused "oauth2: server response missing access_token" #314

Closed
leopku opened this issue Nov 8, 2021 · 1 comment · Fixed by #315
Closed

Wrong token endpoint value caused "oauth2: server response missing access_token" #314

leopku opened this issue Nov 8, 2021 · 1 comment · Fixed by #315
Assignees
Labels
bug Something isn't working

Comments

@leopku
Copy link
Contributor

leopku commented Nov 8, 2021

I got "oauth2: server response missing access_token" while connecting casdoor using third-party oauth client.
But it's ok while changing casdoor to Keycloak.

After digging into source code, I found a wrong value of TokenEndpoint.
Changing TokenEndpoint: fmt.Sprintf("%s/api/login", oidcOrigin) to TokenEndpoint: fmt.Sprintf("%s/api/login/oauth/access_token", oidcOrigin), would make all thing works well.

leopku pushed a commit to leopku/casdoor that referenced this issue Nov 8, 2021
leopku pushed a commit to leopku/casdoor that referenced this issue Nov 8, 2021
Signed-off-by: leo <leo@himysql.com>
hsluoyz pushed a commit that referenced this issue Nov 8, 2021
Signed-off-by: leo <leo@himysql.com>

Co-authored-by: leo <leo@himysql.com>
@casbin-bot
Copy link
Contributor

@seriouszyx @tangyang9464

@casbin-bot casbin-bot added the bug Something isn't working label Nov 8, 2021
@casdoor casdoor deleted a comment from casbin-bot Nov 8, 2021
hyperzlib pushed a commit to hyperzlib/casdoor that referenced this issue Nov 10, 2021
Signed-off-by: leo <leo@himysql.com>

Co-authored-by: leo <leo@himysql.com>
Signed-off-by: Lex Lim <hyperzlink@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants