FormidableLabs / FormidableLabs/react-native-app-auth
App closes while capturing redirect form keycloak
- Vorherrschende Sprache
- Java
- Sterne
- 2.3k
- Forks
- 473
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## Closes while being redirected
Upon successful authentication from keycloak, when the app is redirected, it closes immediately. I've used try catch block to see if it throws any error, but couldn't find any errors, and the code does not reach the next line after the `authorize` function invocation.
## Environment
* **Identity Provider**: `Keycloak`
* **Platform**: `Android`
* **`react-native` Version**: `0.73.6`
* **`react-native-app-auth` Version**: `7.1.3`
* **Are you using Expo?**: `no`
## Configuration
```
// my keycloak sever is running at http://192.168.0.102:8080
{
issuer: 'http://192.168.0.102:8080',
clientId: 'owh-client',
redirectUrl: 'io.identityserver.demo:/oauthredirect',
additionalParameters: {},
scopes: ['openid', 'profile', 'email', 'offline_access'],
serviceConfiguration: {
authorizationEndpoint: 'http://192.168.0.102:8080/realms/Test/protocol/openid-connect/auth',
tokenEndpoint: 'http://192.168.0.102:8080/realms/Test/protocol/openid-connect/token',
},
}
```
Beitragsleitfaden
Rechercherichtung
Beginne mit dem Android-Redirect-Flow nach dem Aufruf von `authorize`, unter Verwendung der bereitgestellten Keycloak-Konfiguration, `redirectUrl` sowie der aufgeführten Versionen von React Native und react-native-app-auth. Reproduziere den Redirect unter Android und ermittle, warum die App geschlossen wird, ohne die nächste Zeile zu erreichen; abgeschlossen ist die Aufgabe, wenn die Authentifizierung zur App zurückkehrt, ohne sie zu schließen, und das Verhalten verifiziert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, react-native
- Bereich
- authentication, mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100