FormidableLabs / FormidableLabs/react-native-app-auth

Difficulties obtaining idToken needef for /logout endpoint

Abierto
#964 7 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
2.3k
Forks
473
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## Issue

Not sure if this is classified as a bug or I'm missing something, but in the documentation it is stated that we can only use the autorization code flow, which is fine.

But then for /logout endpoint it is stated that:

`It requires an idToken, obtained after successfully authenticating with OpenID Connect, and a URL to redirect back after the logout has been performed.`

However, I can't find any way that I can set the response_type to include the 'code id_token' for the /authorize endpoint. The default response_type gets set to 'code' and the server does not return the idToken, which I can then later use for the logout. Because of this I end up sending some invalid string for the idToken param in /logout, which creates problem for the post logout redirect and as a result I end up having to close the custom tab manually after the log out has been completed.

Please let me know if I'm missing anything with the supported logout flow.

---

## Environment

* **Your Identity Provider**: `IdentityServer 4`
* **Platform that you're experiencing the issue on**: `Android`
* **Your `react-native` Version**: `0.73.0`
* **Your `react-native-app-auth` Version**: `7.1.3`
* **Are you using Expo?**: `No`

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con los endpoints documentados /authorize y /logout y la configuración de AppAuth para response_type e idToken en Android. Reproduce el flujo usando IdentityServer 4, React Native 0.73.0 y react-native-app-auth 7.1.3; se considera terminado cuando el comportamiento de logout compatible y la redirección posterior al logout estén aclarados o el defecto esté aislado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, java, react-native
Área
authentication, mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.