cSc
cSc

Reputation: 1

How to add an aud claim to a Microsoft Entra ID JWT

I am using Microsoft Identity Platform with Microsoft Entra to manage user authentication and authorization within a single tenant [web] app, and I would like to use it as an external access provider to a 3rd party database — faunaDB.

The problem is Fauna expects a JWT token with a given audience like https://db.fauna.com/db/xxxx... but msal id and access tokens audiences are a single string value of the application ID and I cannot seem to append anymore.


The documentation for fauna says that

the aud claim must be configurable

is this not the case for Microsoft Entra JWTs? Or am I going about adding the aud wrong, should I be creating a new JWT with msal/MS Entra?


(the web app is built with gatsbyJS and using the msal-react and browser packages)

Upvotes: 0

Views: 498

Answers (0)

Related Questions