akai-org / akai-org/put-wiki

JWT generation for frontend on successful login

オープン
#65 コメント 0 件 リアクション 0 件 担当者 1 名 @MSZM0 が担当を希望しています GitHub で見る
area:backend type:task
主要言語
TypeScript
スター
6
フォーク
3
平均マージ
3日 17時間
マージ済み PR(30日)
15

説明

## Summary
Implement [JWT](https://www.jwt.io/) generation for the frontend. After successful authentication via USOS OAuth and completion of the background user provisioning, the system must generate a signed JWT to authorize subsequent API requests from the frontend.

## [Acceptance criteria](https://www.atlassian.com/work-management/project-management/acceptance-criteria)
- [ ] A signed JWT is generated immediately after a successful user provisioning in the OAuth callback flow.
- [ ] The JWT payload besides standard fields contains only the internal user id to ensure anonymity and become lightweight.
- [ ] The callback endpoint successfully returns the generated JWT to the frontend client.
- [ ] The backend exposes example endpoint protected against guest access (only logged in users can access it) that successfully validates the generated token when passed in the `Authorization: Bearer` header.
- [ ] When access is not granted appropiate HTTP code and error message is returned from API (that should be documented)
## Notes
important context

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

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

評価

この issue はまだ評価されていません。

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

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