Skip to content

Commit

Permalink
Merge pull request #4275 from traPtitech/impl/oidc
Browse files Browse the repository at this point in the history
OAuth2の新しいスコープに対応
  • Loading branch information
motoki317 authored May 8, 2024
2 parents d8043f6 + bb7e410 commit dde863e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
27 changes: 15 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@mdi/js": "^7.2.96",
"@sapphi-red/web-noise-suppressor": "^0.3.3",
"@traptitech/traq": "^3.15.1-8",
"@traptitech/traq": "^3.17.0-3",
"@traptitech/traq-markdown-it": "^6.3.0",
"autosize": "^6.0.1",
"cropperjs": "^1.5.13",
Expand Down
8 changes: 8 additions & 0 deletions src/lib/clientScope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ export const scopeInfoMap: Record<
OAuth2Scope,
{ name: string; permissions: string[] }
> = {
[OAuth2Scope.Openid]: {
name: 'ユーザーID取得',
permissions: ['traQ IDの取得']
},
[OAuth2Scope.Profile]: {
name: 'プロフィール取得',
permissions: ['自ユーザー情報の取得']
},
[OAuth2Scope.Read]: {
name: 'データの読み取り',
permissions: [
Expand Down

0 comments on commit dde863e

Please sign in to comment.