Repository navigation
How to configure module to verify aud claim? #93
Replies: 2 comments
|
There are two separate cases here. If your For local JWT validation, the current config docs say that setting So I would check these in order: # local JWT validation path
OAuth2TokenVerify jwks_uri https://.../jwks aud=<Entra app/client id>&verify.aud=requiredThen make sure the running package is new enough for the documentation you are reading. The current mod_oauth2 changelog has release If you are intentionally using If this explains the mismatch, please mark it as answered so the |
|
Thanks @yudin-s for the detailed reply. Using I have struggled to discover the version of the module that's installed by FWIW, it sure would be helpful if the OAuth2 module would log its version when it starts, even if it's only at debug level. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thanks for the new documentation about verifying the audience
audclaim. I am using an older version of the module installed via apt-get in a Debian Apache HTTPD base image. Do old(er) versions of the module support the "aud" parameter and its validation?I'm testing to make sure aud validation works. I added configuration
aud=<Entra ID app registration client ID>, restarted the container and sent a request. The module accepted the token and claims. Then I deliberately broke theaudvalue in the configuration, sent a new request, and was unhappily surprised to see that the token was still accepted. In the debug log I see the token arrive with the app registration client ID from Entra, but the module doesn't flag the mismatch against the configured value supplied as an option on theOAuth2TokenVerifyline in filehttpd-ssl.conf. I also added optionverify.aud=requiredbut that didn't change the behavior.Please advise what to try.
All reactions