Keycloak and Gokapi #82
-
Hello, I'm trying to use gokapi with keycloak for oauth/oidc, but I can't get it to work and want to also know if it is even possible with gokapi or not. Also, normally with stuffed that worked with keycloak for me, you had 3 uri not one: So I'm currently leaning more towards not possible... I tried these endpoints on my keycloak as OAuthProviders:
But they all didn't work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I assume in that case it would be the OIDC_AUTH_URI you need to enter. See the example for Google OIDC configuration below. Otherwise try |
Beta Was this translation helpful? Give feedback.
-
Sorry Forgot to answer but I found it. I set my key cloak root URL wrong (It was From this URL it gets the well-known openid configuration ( |
Beta Was this translation helpful? Give feedback.
Sorry Forgot to answer but I found it. I set my key cloak root URL wrong (It was
https://domain.tld
now it ishttps://domain.tld/auth
), so the issuer would miss match (also the URL in the configuration had no endpoint), and in gokapi it worked with this URLhttps://domain.tld/auth/realms/{realm}
.From this URL it gets the well-known openid configuration (
https://domain.tld/auth/realms/{realm}/.well-known/openid-configuration
). That's what I found out looking up how the go openid implementation (github.com/coreos/go-oidc/v3/oidc
) does it.