asgardeo / asgardeo/javascript

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

オープン
#508 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Severity/Major Type/Bug
主要言語
TypeScript
スター
18
フォーク
67
平均マージ
4時間 6分
マージ済み PR(30日)
13

説明

### 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

- [x] I have searched the existing issues and this is not a duplicate.
- [x] I have provided all the necessary information.
- [x] I have tested the issue on the latest version of the package.

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

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

調査の方向性

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

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

評価

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

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

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