Repository navigation
{"msg":"oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}"} #19939
Replies: 1 comment
|
Issue resolved after I replaced Keycloak IP address with FQDN in Golang code, like I was using FQDN in oauth2-proxy config. |
0 replies
Sign up for free
8000
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
While using oauth2-proxy (https://github.com/oauth2-proxy/oauth2-proxy) with Keycloak..
Getting below error from oauth2-proxy endpoint /oauth2/callback after redirected from successful login.
{"msg":"oauth2: cannot fetch token: 400 Bad Request\nResponse: {\"error\":\"invalid_grant\",\"error_description\":\"Code not valid\"}"}Below log extract from Keycloak pod :
Below log from Golang backend pod which responds to /oauth2/callback after successfull login attempt (Always seeing two callbacks in the logs here after successfull login):
Appreciate any suggestions to resolve this issue.
All reactions