FormidableLabs / FormidableLabs/react-native-app-auth
Silent logout react native?
- 主要言語
- Java
- スター
- 2.3k
- フォーク
- 473
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## 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
コントリビューションガイド
調査の方向性
まず、報告されている postLogoutRedirectUrl と react-native-app-auth 7.2.0 の設定を使用して、iOS 上で Azure Active Directory に対する logout() を再現します。ダイアログの終了と返される AppAuth エラーを、成功する login リダイレクトフローと比較します。リダイレクト URL または logout フローのどちらがダイアログとエラーの原因であるかを特定し、確認済みの解決策または制限事項を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react-native
- 領域
- authentication, mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100