Open AnthonyNTK opened 6 years ago
Same problem. Looks like that the library is unmaintained
This is most likely not an issue with library, but rather with your azure app registration.
please verify those two potential fixes:
1) create special URL that needs to be hit by tenant administrator:
https://login.microsoftonline.com/
2) make sure that your native application has got API you try to call in required permissions.
This is most likely caused by this app: 'https://wiadvancetechnology.sharepoint.com',
in your resources
Same problem. I used the exact same code as https://github.com/wkh237/rn-azure-ad-sample/blob/master/index.common.js
Any idea?
In constructor the resources option is the issue. Please try to mention graph api url both in constructor and your render method.
Also configure graph api properly on azure portal. You can check Microsoft official document to configure your graph api on azure portal
It worked for me
I got this error when my onSuccess
method did not have a this
binding. Converting it into an arrow function solved the issue.
I had the same issue and found the problem in authority url. FYI, I was using react-native.
Change the authority from
authority: 'https://login.microsoftonline.com/common/v2.0'
-> authority: 'https://login.windows.net/common'
and rest of the fields are as follows:
resourceId: 'https://graph.windows.net/',
clientId: '3333387f-2XX3-4XXX-bXXX-0ce3e079XXX',
iosRedirectUri: 'x-msauth-org-reactjs-native-example-sample://org.reactjs.native.example.sample',
androidRedirectUri: 'msal3333387f-2XX3-4XXX-bXXX-0ce3e079XXX://auth',
brokeredAuth: false
ERROR: ADLoginView._getResourceAccessToken Error: Failed to acquire token for resources
React native app code as below
Any idea?
Package.json