A claudiajs intercept to verify that the token supplied with a request is from an authorised Azure AD user.
const ApiBuilder = ;const api = ;const azureAuthenticateIntercept = ;const config =tenantId: '4555f184-f629-4962-a914-2720ccc49c5a'audience: ''api;
The next piece of middleware excutes if you're token is valid. All other circumstances will return a 401.
- the tenantId is used to validate the issuer
- the audience is used to validate the audience