Skip to content

Azure app / Microsoft auth redirect isue #1103

@tremblerz

Description

@tremblerz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions