-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get accessToken in offline mode returning "null"? #997
Comments
Azure has specific requirements in order to get the access token. Please see the links in the our documentation here. |
I have the same issue with Azure B2C. I have referred the documentation referenced by @carbonrobot but unfortunately I could not find any info or extra steps related to getting the access token. |
I found the required info from @carbonrobot's another comment on similar issue It was just adding the Azure App ID to the scope , the new config which returned the access code is below : |
In offline mode, the Access token returns null even added the "offline_access" in the scope
Here the scope
API_ACCESS_SCOPE: [
'offline_access',
'api://xxxxxxxxxxxxxxxxxx/api-access',
],
getAzureApiAccessConfig() {
return {
issuer:
${MS_BASE_API_URL}${TENANT_ID}/v2.0
,clientId: APP_ID,
redirectUrl: REDIRECT_URL,
scopes: API_ACCESS_SCOPE,
}
async getAccessTokenAsync() {
try {
const userInfo = await this.getUserInfo();
}
please help me what's went wrong?
The text was updated successfully, but these errors were encountered: