vmurin / react-native-azure-auth

React Native library implementing Azure AD OAuth2 API
MIT License
85 stars 65 forks source link

ID tokens not present #174

Closed BB-BenBridges closed 5 months ago

BB-BenBridges commented 1 year ago

Hi

When setting up an Mobile and Desktop application in the Azure portal as instructed in the setup, you are not presented with the ID Tokens setting. This is only present when creating a Web Application

As a workaround for anyone else who reaches this thread, you can download the JSON manifest, update

"oauth2AllowIdTokenImplicitFlow": true,
"oauth2AllowImplicitFlow": true,

save, and then upload your updated JSON file.

However, after doing the above, I now get the error No reply address provided I have my callback URL set to authapptest://authapptest/android/callback for use with the example repo. Where am I going wrong?

BB-BenBridges commented 1 year ago

Didn't realise I need the com. as well so com.authapptest://com.authapptest/android/callback fixed it.

The issue with the ID Token still exists.

shahraizali commented 1 year ago

any luck ?

BB-BenBridges commented 1 year ago

Yes I have the login working however the instructions regarding enabling ID Tokens in the Azure portal are no longer correct. The setting only appears if you select a Web Application type. The only way I can now see to enable this it to download the JSON manifest, update the following

"oauth2AllowIdTokenImplicitFlow": true,
"oauth2AllowImplicitFlow": true,

save, and then upload your updated JSON file.