FormidableLabs / FormidableLabs/react-native-app-auth

'org.openid.appauth.general error -3' Intermittent issue

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

説明

## Issue

I'm currently using react-native-app-auth 6.4.3 and react native 0.70.6, and I'm using the react-native-app-auth authorization function as follows:

```
const config = {
authority: "x",
clientId: this.clientID,
clientSecret: this.clientSecret,
redirectUrl: this.redirectURI,
scopes: ["openid"],
loadUserInfo: false,
serviceConfiguration: {
authorizationEndpoint: authorizationEndpoint,
tokenEndpoint: tokenEndpoint
},
additionalParameters: {
},
clientAuthMethod: "",
dangerouslyAllowInsecureHttpRequests: false,
customHeaders: {
token: {},
authorize: {},
register: {},
},
additionalHeaders: {},
useNonce: false,
usePKCE: false,
skipCodeExchange: true,
connectionTimeoutSeconds: 60,
issuer: issuer
}

await authorize(config).then(async (res)=> {
.... //some stuff
})
.catch((err)=>console.log("ERROR:", err));
```

Sometimes I am able to log in as expected, but other times it catches the error, "The operation couldn’t be completed. (org.openid.appauth.general error -3.)". The issue is very intermittent. Is there a suggested fix for this issue?

---

## Environment

* **Platform that you're experiencing the issue on**: `iOS`
* **Are you using Expo?** `No`

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

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

調査の方向性

Start at the authorize(config) call and the iOS AppAuth error "org.openid.appauth.general error -3". Reproduce the intermittent failure with the supplied configuration, then trace the iOS authorization flow to determine the failing condition. Done means identifying a reliable cause and documenting or validating a fix for the intermittent error.

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

評価

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

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

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