access-token claims not set apache openidc header (mod _auth_openidc)

421 Views Asked by At

I am trying get a claim from access-token. I am getting claims from id-token in header but not from access-token. I have authType as openid-connect as it is Human to web authentication. I get encrypted access-token OIDC_ACCESS_TOKEN but what I want is decrypted access-token in json format and claims added. Is there any configuration I can use from mod_auth_openidc to achieve same ?

1

There are 1 best solutions below

0
On

Use this in apache conf file:

Header set OIDC_access_token "%{OIDC_access_token}e" env=OIDC_access_token

Reference: https://github.com/OpenIDC/mod_auth_openidc/issues/76#issuecomment-114924260