React-Native-MSAL mit Authentifizierungs-App auf iOS funktioniert nichtJavaScript

Javascript-Forum
Anonymous
 React-Native-MSAL mit Authentifizierungs-App auf iOS funktioniert nicht

Post by Anonymous »

Unser Team erstellt eine App mit integrierter MSAL unter Verwendung von React-Native-MSAL. Während die Bibliothek für Android, Web und den iOS-Simulator gut funktioniert, tritt auf einem physischen iOS-Gerät ein Problem auf.
Beim Anmelden unter iOS öffnet die App den Microsoft Authenticator App (falls installiert) anstelle des Browsers. Nachdem Sie in der Authenticator-App ein Konto ausgewählt haben, wird auf eine nicht vorhandene Seite in der App weitergeleitet und der Benutzer ist nicht angemeldet.
Hier sind einige Teile unseres Codes:

Code: Select all

export const config: MSALConfiguration = {
auth: {
clientId: "CLIENT_ID", // Replace with your actual client ID
// This authority is used as the default in `acquireToken` and `acquireTokenSilent` if not provided to those methods.
authority: "https://login.microsoftonline.com/TENANT_ID", // Replace with your tenant ID
redirectUri: Platform.select({
android: "msauth://com.example.app/ANDROID_REDIRECT_URI", // Replace with your redirect URI
ios: "msauth.com.example.app://auth", // Replace with your iOS redirect URI
default: undefined,
}),
},
};
iOS-Redirect-URIs
  • Wir haben versucht, der Anleitung zu folgen, um „react-native-msal“ ordnungsgemäß in iOS zu integrieren
    Durch das Löschen der Authentifizierungs-App öffnet die App den Browser, führt dort die Authentifizierung durch und ermöglicht die Anmeldung des Benutzers. Wir müssen jedoch auch sicherstellen, dass die Authentifizierungs-App verwendbar ist.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post