React app login with code grant silently fails when public client option is not enabled

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
react, typescript

調査の方向性

まず、@asgardeo/express パッケージと @asgardeo/react パッケージを使って、スクリーンキャストに示されている失敗を再現し、その後、認証後に行われる login と token の呼び出しを追跡します。code grant を public client オプションなしで有効にした状態で login が成功し、同じタブで再度サインインしても同じ callback URL にリダイレクトされなければ完了です。

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

説明

Severity/Major Type/Bug
Description

When the code grant is enabled without the public client option is enabled, the react application login silently fails because the token calls sent after the user is authenticated fails with the following error. Initiating signing in again in the same tab also redirects the user to same callback URL.

Steps to Reproduce

The following screencast shows this erroneous behaviour.

https://github.com/user-attachments/assets/5f73e716-603f-4885-a764-9b775005342a

Please select the area the issue is related to

@asgardeo/express, @asgardeo/react

Version

latest

Environment Details (with versions)

No response

Reporter Checklist
  • I have searched the existing issues and this is not a duplicate.
  • I have provided all the necessary information.
  • I have tested the issue on the latest version of the package.
主要言語
TypeScript
スター
18
フォーク
67
平均マージ
4時間 6分
マージ済み PR(30日)
13

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

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

はじめの一歩

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

asgardeo/javascript のほかの issue

asgardeo/javascript の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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