I've been trying to debug why my REMOTE_USER is not set, and it seems that replacing using regexes works only on some claims.
Imagine, that the OP releases these claims:
name: "Dominik František Bučík"
preferred_username: "dbucik"
When I try to set the REMOTE_USER using the following, it works for the name, but does not for preferred_username:
OIDCRemoteUserClaim name ^(.*)$ $1@test.com
OIDCRemoteUserClaim preferred_username ^(.*)$ $1@test.com
In the case of the preferred_username, I get these messages in debug log:
[auth_openidc:error] [pid ...] [client...] oidc_get_remote_user: oidc_util_regexp_substitute failed: unknown error could not match string [dbucik] using pattern [^(.*)$] and replace matches in [$1@test.com], referer: ...
[auth_openidc:error] [pid ...] [client...] oidc_set_request_user: OIDCRemoteUserClaimis set to "preferred_username", but could not set the remote user based on the requested claim "preferred_username" and the available claims for the user, referer: ...
[auth_openidc:error] [pid ...] [client...] oidc_handle_authorization_response: remote user could not be set, referer: ...
Hey all,
I've been trying to debug why my REMOTE_USER is not set, and it seems that replacing using regexes works only on some claims. Imagine, that the OP releases these claims:
When I try to set the REMOTE_USER using the following, it works for the
name
, but does not forpreferred_username
:In the case of the
preferred_username
, I get these messages in debug log:Full configuration of VirtualHost:
I am running the following versions:
Any idea what might be going on?