FormidableLabs / FormidableLabs/react-native-app-auth
Authorize promise does not resolve for Microsoft authentication in IOS
- Vorherrschende Sprache
- Java
- Sterne
- 2.3k
- Forks
- 473
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## Issue
I faced a problem of Microsoft authentication authorize promise not resolved or reject in IOS, but it works well in android.
I just have this log in xcode
Background Task 13 ("Called by XXX, from -[RNAppAuth issuer:redirectUrl:clientId:clientSecret:scopes:additionalParameters:serviceConfiguration:skipCodeExchange:useNonce:usePKCE:resolve:reject:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
Environment
Identity Provider: Custom Oauth2 Compliant Provider
Platform: iOS (13.7 and 10.3.1)
React Native: 0.74.3
React Native App Auth: 8.0.0
Not using Expo
Beitragsleitfaden
Rechercherichtung
Beginne mit dem im Xcode-Log genannten iOS-Authorize-Pfad, einschließlich der Methode issuer:redirectUrl:clientId:...:resolve:reject: von RNAppAuth. Reproduziere die Microsoft-Authentifizierung auf den aufgeführten iOS-Versionen und vergleiche sie mit Android, während du die Warnung zur 30-Sekunden-Hintergrundaufgabe überprüfst. Als abgeschlossen gilt die Aufgabe, wenn das Authorize-Promise auf iOS zuverlässig aufgelöst oder abgelehnt wird, ohne dass die Hintergrundaufgabe weiterläuft.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios, react-native
- Bereich
- authentication, mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100