You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior
When set the protectedResourceMap as Azure Active Directory graph api, it should give token with aud 'https://graph.windows.net/', but instead it gives token with aud 'https://graph.microsoft.com'.
Also when i use this token with actual Azure Active Directory graph api call, it gives error of Token expired.
using below typescript code to get the token ;
public async getAccessToken(endpointUri: string): Promise {
On Mar 13, 2019, at 9:30 AM, komal-allscripts ***@***.***> wrote:
When set the protectedResourceMap as Azure Active Directory graph api, it should give token with aud 'https://graph.windows.net/', but instead it gives token with aud 'https://graph.microsoft.com'.
Actual behavior
When set the protectedResourceMap as Azure Active Directory graph api, it should give token with aud 'https://graph.windows.net/', but instead it gives token with aud 'https://graph.microsoft.com'.
Also when i use this token with actual Azure Active Directory graph api call, it gives error of Token expired.
using below typescript code to get the token ;
public async getAccessToken(endpointUri: string): Promise {
this.accessToken = '';
const scopes = this.msalService.getScopesForEndpoint(endpointUri);
return new Promise((resolve, reject) => {
this.msalService.acquireTokenSilent(scopes)
.then(accessToken => {
this.accessToken = accessToken;
resolve(true);
// tslint:disable-next-line: promise-function-async
}).catch(() => {
return this.msalService.acquireTokenPopup(scopes)
.then(token => {
this.accessToken = token;
resolve(true);
})
.catch((error) => {
reject(new Error(error));
});
});
});
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
When set the protectedResourceMap as Azure Active Directory graph api, it should give token with aud 'https://graph.windows.net/', but instead it gives token with aud 'https://graph.microsoft.com'.
Actual behavior
When set the protectedResourceMap as Azure Active Directory graph api, it should give token with aud 'https://graph.windows.net/', but instead it gives token with aud 'https://graph.microsoft.com'.
Also when i use this token with actual Azure Active Directory graph api call, it gives error of Token expired.
using below typescript code to get the token ;
public async getAccessToken(endpointUri: string): Promise {
this.accessToken = '';
const scopes = this.msalService.getScopesForEndpoint(endpointUri);
return new Promise((resolve, reject) => {
this.msalService.acquireTokenSilent(scopes)
});
}
The text was updated successfully, but these errors were encountered: