- Log in to post comments
I have identified my issue, and implemented a workaround at least for my proof of concept. What I found in the FHIR Logs is the audience (aud) is not matching from the FHIR Oauth class. It appears the OAuthClass is blocking based on the audience as Entra is sending the clientID and the FHIR OAuth Class is expecting something different (my guess is endpoint?). For now, I have implemented a custom interactionStrategy and a custom OAuth2Token Handler Class to replace the standard one so this audience block does not happen. I am pending Support on this issue otherwise.
^FSLOG(24110)="ValidateToken^HS.FHIRServer.Util.OAuth2Token^170903|Msg|ValidateJWT() token aud=<Entra Client ID> |04/29/2026 12:27:34.436871PM"
^FSLOG(24111)="ValidateToken^HS.FHIRServer.Util.OAuth2Token^170903|Msg|Token aud failed validation|04/29/2026 12:27:34.436896PM"
- Log in to post comments
Update: I enabled OAuth globally and now I can get a user, create a user and assign scopes. But I still get 401.
- Log in to post comments
yes, I was correct,. it is expecting the baseUrl