Hello
I’m trying to call the userinfo API by passing an accesstoken via Bearer as shown in the screen.
Annotation 2020-05-22 115013|690x275
The token is obtained via a SPA applicationion using angular-oauth2-oidc settings audience like this
export const authConfig: AuthConfig = {
strictDiscoveryDocumentValidation: false,
issuer: environment.auth0Issuer,
redirectUri: window.location.origin + '/auth',
clientId: environment.auth0ClientId,
scope: 'openid profile email',
silentRefreshRedirectUri: window.location.origin + '/silent-refresh.html',
timeoutFactor: 0.5,
waitForTokenInMsec: 0,
customQueryParams: { audience: environment.auth0Audience }
};
I decode the token via jwt.io and I know that the aud parameter is set with the ClientID and not with the Audience parameter? Is it normal?
Is it possible that the userinfo API problem is due to this?
Thanks