Repository navigation
Replies: 5 comments 14 replies
|
Did another test with following configuration, also not successful (always sending access token from mod_sts to backend): |
|
After lots of trial-and-error I am at wit's end :-( I also asked KI (ChatGPT) about it and I hope this answer is not true...
|
|
where would the access token come from if the user is not logged in through mod_auth_openidc? |
|
the SetEnvIf STS_CC_TRIGGER true !OIDC_CLAIM_sub
STSAcceptSourceTokenIn environment name=STS_CC_TRIGGER
STSExchange cc https://as.example.com/oauth/token auth=client_secret_basic&client_id=XXXX&client_secret=YYYY&on_error=pass
STSPassTargetTokenIn headeri.e. without |
|
To wrap it up, this is the working config, many thanks to Hans Zandbelt! NOTE the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'd like to use Access Tokens from mod_sts in case there is no mod_auth_openidc access token available (user not logged in). Is that possible?
I tried many things but was not successful so far.
What works is to use the mod_auth_openidc_session cookie as a selector for unauthicated versus authenticated requests, but this is not good enough as it does not prove a user is logged in.
I also tried the following (which resulted that it always used the token from mod_sts):
I also tried unsuccessfully with the Target Token in an environment with:
All reactions