FormidableLabs / FormidableLabs/react-native-app-auth
Imgur doesn't accept redirect_uri
オープン
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 2.3k
- フォーク
- 473
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Issue
I followed the instructions provided in https://github.com/FormidableLabs/react-native-app-auth/issues/516#issuecomment-2115465572.
react-native-app-auth generated the url:
https://api.imgur.com/oauth2/authorize?redirect_uri=com.myapp%253A%252F%252Foauth&client_id=xxxx&response_type=code&state=CeCjYuaMTtKVEuGvcW5EtA&nonce=DK8X_F3jH_z7F2dxgcNfRQ&code_challenge=eaUwn9soj0T-o2xMJCFj0WDZShVjoS1ENrLOSZVWX_s&code_challenge_method=S256
However, this resulted in an error:
{
"data": {
"error": "The redirect URI provided is missing or does not match",
"request": "/oauth2/authorize",
"method": "POST"
},
"success": false,
"status": 400
}
Since the Imgur API documentation doesn't mention the need for a redirect_uri, I decided to remove it from the URL:
https://api.imgur.com/oauth2/authorize?client_id=xxxx&response_type=code&state=CeCjYuaMTtKVEuGvcW5EtA&nonce=DK8X_F3jH_z7F2dxgcNfRQ&code_challenge=eaUwn9soj0T-o2xMJCFj0WDZShVjoS1ENrLOSZVWX_s&code_challenge_method=S256
This modification successfully resolved the error.
Environment
- Your Identity Provider:
imgur - Platform that you're experiencing the issue on:
Android - Your
react-nativeVersion:0.74.5 - Your
react-native-app-authVersion:8.0.0 - Are you using Expo? Yes
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リポジトリのファイル、テスト、エントリーポイントは指定されていません。まず、react-native-app-auth 8.0.0 を使って Android 上で Imgur の認証フローを再現し、redirect_uri の有無によるリクエストを比較してください。報告されているリダイレクト URI エラーが発生せず、想定される Imgur OAuth フローが成功すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, react-native
- 領域
- authentication, mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100