FormidableLabs / FormidableLabs/react-native-app-auth

Azure app / Microsoft auth redirect isue

Open
#1,103 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

## Issue

I have been trying to set up an microsoft identity platform configuration and it works perfectly on Android but on iOS the request goes fine but when the Outlook server returns the response, the library is not picking it up. By that I mean, the `authorize` function keeps running/waiting even though the response had arrived. Android works fine. The config is as follows -
```
const MICROSOFT_CONFIG = {
issuer: 'https://login.microsoftonline.com/common/v2.0',
clientId: 'redacted,

redirectUrl: Platform.select({
ios: 'redacted_app_redirect_uri://msauth',
android: 'redacted_app_redirect_url://msauth',
}),

scopes: [
'openid',
'profile',
'email',
'offline_access',
],

serviceConfiguration: {
authorizationEndpoint:
'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
tokenEndpoint:
'https://login.microsoftonline.com/common/oauth2/v2.0/token',
},
};
```
---

## Environment
* **Your Identity Provider**: `Azure`
* **Platform that you're experiencing the issue on**: `iOS`
* **Your `react-native` Version**: `0.79.6`
* **Your `react-native-app-auth` Version**: `8.1.0`
* **Are you using Expo?** NO

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.