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.
-
I have a site (example.com) which uses
mod_auth_openidc
for various webapps, andmod_oauth2
for CLI access. The site also runs Keycloak, with everything behind Apache. Currently, I'm testingmod_oauth2
using git, withgit-credential-manager
(GCM). This fails, and it looks likemod_oauth2
has (slightly) changed the introspection endpoint such that it no longer matches the original token issuer (which was the local Keycloak).I'm on
liboauth2
1.5.2,mod_oauth2
3.3.1.2.There are three Apache accesses, which are (more details in the log output below):
(1) I carry out a
git clone
from the command line, and GCM issuesGET /git/test/info/refs?service=git-upload-pack HTTP/1.1\r\n
This 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_oauth2
then carries out two introspectionPOST
s. I don't understand why there are two; the first is incoming, so I presume is a redirection; the second is aPOST
out 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 firstPOST
correctly shows/keycloak/realms
. So, basically, the problem appears to be that the firstPOST
in 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_dumpio
log output below. Unfortunately, theLogLevel oauth2:debug
doesn't seem to do anything:Beta Was this translation helpful? Give feedback.
All reactions