FormidableLabs / FormidableLabs/react-native-app-auth

8.0.1 and 8.0.2 - Failed to Logout in iOS (Unable to open safari browser)

オープン
#1,071 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
2.3k
フォーク
473
PR マージ指標
30日以内にマージされた PR はありません

説明

## Issue

For Login works fine
```
configIdp: {
issuer: "https://xxx-xxx.xxxxxx.com/oauth2/xxxxxxxxxxxxxxx",
clientId: "xxx-xxxxx_uat_native_xxxxxxxxxxxxxx",
redirectUrl: "com.xxxxxxx.xxxxxxxx:/login",
logoutRedirectUrl: "com.xxxxxxx.xxxxxxxx:/logout",
scopes: ["openid", "offline_access", "apis.default", "default", "legacy"],
iosPrefersEphemeralSession: true
},
```

Login.JS

```
import { authorize } from 'react-native-app-auth';

return authorize(this.props.configIdp).then(res => {
})
```

While
Logout.js
```
import { logout as oktaLogout } from 'react-native-app-auth';
const config = store.getState()?.properties?.properties?.configIdp;
const idToken = store.getState()?.app?.loginInfo?.idToken
try {
const res = await oktaLogout(config, { idToken, postLogoutRedirectUrl: config.logoutRedirectUrl });
} catch (err) {
console.log(err)
}
```

Log: Unable to open safari

It works fine in the previous version 8.0.0 after upgrading to 8.0.1 or 8.0.2 facing this issue
Note: But it works fine in simulator

Im facing this logout issue only after uploading my app to appstore - test flight build
---

## Environment

* **Identity Provider**: `Okta`
* **Platform that you're experiencing the issue on**: `iOS `
* **`react-native` Version**: `0.78.0`
* ** `react-native-app-auth` Version**: `8.0.2`
* **Are you using Expo?** No

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Logout.js と示されている oktaLogout 呼び出しから始め、提供された Okta 設定を使用して、バージョン 8.0.2 の実機 iOS TestFlight での動作をバージョン 8.0.0 と比較してください。シミュレーター外で "Unable to open safari" の失敗を再現し、署名付きビルドでログアウトが正常に完了するかを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ios, javascript, react-native
領域
authentication, mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。