FormidableLabs / FormidableLabs/react-native-app-auth

Silent logout react native?

Abierto
#994 3 comentarios 1 reacción 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

I'm using Microsoft Azure ActiveDirectory for my mobile app and am attempting to achieve silent (promptless) logout. I've setup
a login_hint for my id token, but I'm unable to achieve a logout UX that prevents the popping of 2 dialogs - one for the user to acknowledge that the app wishes to use microsoftonline.com to Sign In and the second to choose the user to sign out.

Is promptless logout something that has been achieved with this library in react native?

In addition, the logout() method seems to log the user out as the Azure pop-up displays the message:

> You're signed out here, but you may need to manually sign out from other apps.

From here the pop-up dialog doesn't automatically dismiss, and I'm required to hit the 'Cancel' button in the top left
corner in order to dismiss the dialog. This results in the logout() method returning the following error:

`The operation couldn’t be completed. (org.openid.appauth.general error -3.)`

I suspect that this may be due to my postLogoutRedirectUrl, which is:

`'com.foo.mobile.unauth://oauth/'`

Is this supposed to be an https url? I used this form due to the need to use a similar redirect for login:

`'com.foo.mobile.auth://oauth/'`

Note, I have no issues with login. Everything returns successfully and the Azure dialog presents with a continue button for dismissing itself after successful auth.

## Environment

* **Azure Active**
* **Platform that you're experiencing the issue on**: `iOS`
* **Your `react-native` Version**: `0.71.4`
* **Your `react-native-app-auth` Version**: `7.2.0`
* **Are you using Expo?**: NO

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza reproduciendo logout() en iOS con Azure Active Directory, utilizando la postLogoutRedirectUrl indicada y la configuración de react-native-app-auth 7.2.0. Compara el cierre del diálogo y el error de AppAuth devuelto con el flujo de redirección de login exitoso. Se considera terminado cuando se haya determinado si la URL de redirección o el flujo de logout causan los diálogos y el error, y se haya documentado una resolución o limitación confirmada.

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

Evaluación

Stack tecnológico
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.