Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confidential clientのサポート(client typeを選択可能に) #2426

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kyosu-1
Copy link
Member

@kyosu-1 kyosu-1 commented May 16, 2024

背景は #2402 に記載の通りです

defaultがpublic clientでconfidential clientが選択不可能だったところを、confidential clientかpublic clientを登録時に選択可能に(&取得時にconfidential filedを追加)しました。

後方互換性の観点から、POST時はconfidential フィールドは not requiredかつ、default値をfalse(public client)としています。

clientTypeというフィールドを追加して(confidentialとpublicの)enumにする実装方針もありましたが、実装が単純になるboolean(DBと同じ型)のconfidential フィールドを持たせる形にしました

@kyosu-1 kyosu-1 linked an issue May 16, 2024 that may be closed by this pull request
@kyosu-1 kyosu-1 changed the title add confidential field in oauth client confidential clientのサポート(client typeを選択可能に) May 16, 2024
@kyosu-1
Copy link
Member Author

kyosu-1 commented May 16, 2024

traPtitech/traQ-bot-console#538
こちらのマージ後にUI側の対応が必要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OAuth clientのconfidential clientのサポート
1 participant