asgardeo / asgardeo/javascript

Redirect back to original secured route after login

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

説明

### Current Limitation

When using @asgardeo/react-router, navigating to a secured route without being logged in redirects the user to Asgardeo/IS for authentication.

After successful authentication, the user is redirected to the application root (/) instead of the originally requested secured route. This results in a poor user experience. Ideally, the user should be redirected back to the exact secured route they intended to access.

.

### Suggested Improvement

This can be implemented without changes to Asgardeo/IS by leveraging the OAuth2 state parameter. The SDK can encode the currently active path in the state parameter (only if the route is valid and marked as secured) and restore it after successful authentication

### Please select the package issue is related to

@asgardeo/react-router

### Version

1.1.0

### 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 verified the improvement is not available in the latest version of the package.

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

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

調査の方向性

Start by tracing the secured-route authentication flow in @asgardeo/react-router and how the OAuth2 state parameter is created and handled after login. Confirm how valid secured paths are identified, then verify that a successful login restores the originally requested route instead of /.

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

評価

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

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

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