Introspection failure: is mod_oauth2 changing the endpoint? #61
Replies: 2 comments 2 replies
-
|
I think I've encountered problems with |
Beta Was this translation helpful? Give feedback.
-
|
Debug, without So, it looks like the problem is the Keycloak proxy setting: So the introspection access arrives back at Apache and is proxied locally without the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a site (example.com) which uses
mod_auth_openidcfor various webapps, andmod_oauth2for CLI access. The site also runs Keycloak, with everything behind Apache. Currently, I'm testingmod_oauth2using git, withgit-credential-manager(GCM). This fails, and it looks likemod_oauth2has (slightly) changed the introspection endpoint such that it no longer matches the original token issuer (which was the local Keycloak).I'm on
liboauth21.5.2,mod_oauth23.3.1.2.There are three Apache accesses, which are (more details in the log output below):
(1) I carry out a
git clonefrom the command line, and GCM issuesGET /git/test/info/refs?service=git-upload-pack HTTP/1.1\r\nThis has basic authorisation, and a base64-encoded token which looks good. The issuer is shown as
https://example.com/keycloak/realms/vserver, which is as expected.(2)
mod_oauth2then carries out two introspectionPOSTs. I don't understand why there are two; the first is incoming, so I presume is a redirection; the second is aPOSTout to the introspection endpoint. The token sent to Keycloak is the one from git, and still has an issuer ofhttps://example.com/keycloak/realms/vserver.This final Keycloak access has:
The endpoint is wrong: it's shown as
/realms. The firstPOSTcorrectly shows/keycloak/realms. So, basically, the problem appears to be that the firstPOSTin the log output shows/keycloak/realms, but this has gone in the secondPOST. Any idea why this should be?The Apache config is:
Abbreviated
mod_dumpiolog output below. Unfortunately, theLogLevel oauth2:debugdoesn't seem to do anything:Beta Was this translation helpful? Give feedback.
All reactions