FormidableLabs / FormidableLabs/react-native-app-auth

Distinguish between when the user declined the "Sign In" prompt or cancelled the flow in iOS

オープン
#849 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Java
スター
2.3k
フォーク
473
PR マージ指標
30日以内にマージされた PR はありません

説明

The issue https://github.com/FormidableLabs/react-native-app-auth/issues/565 suggests a way to differentiate between cancels from login failures.

But in iOS there are two types of cancellations in general:

  1. when the user presses "Cancel" on the prompt, that is by declining to sign in itself which is before the browser flow is even started
  2. when the user actually cancels the login flow or closes the browser

Is there anyway to distinguish between these two cases for iOS? For proper tracking purposes, I'd like to know when the user declines the prompt specifically.

image

Currently if you check the error as per suggested in here, both of these cases resolve to user cancellation which is based on this -3 error code.

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず issue 565 のキャンセルに関する議論と、参照されている AppAuth-iOS Source/AppAuthCore/OIDError.h のエラーコードを確認します。2 つの iOS のキャンセル経路が React Native bridge を通じて異なるシグナルを公開しているかを判断します。完了条件は、呼び出し側が Sign In プロンプトの拒否と、ブラウザフローのキャンセルまたは終了を確実に区別できることです。

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

評価

技術スタック
ios, react-native
領域
authentication, mobile
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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