FormidableLabs / FormidableLabs/react-native-app-auth

App closes while capturing redirect form keycloak

Aperta
#955 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
needs-triage
Lingua principale
Java
Stelle
2.3k
Fork
473
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## 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',
},
}
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start with the Android redirect flow after the `authorize` invocation, using the supplied Keycloak configuration, `redirectUrl`, and listed React Native and react-native-app-auth versions. Reproduce the redirect on Android and determine why the app closes without reaching the next line; done means authentication returns to the app without closing it and the behavior is verified.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, react-native
Ambito
authentication, mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.