Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit27f5ff2

Browse files
authored
chore: correctly document SCIM authentication (#15234)
1 parent900e2cd commit27f5ff2

File tree

5 files changed

+30
-16
lines changed

5 files changed

+30
-16
lines changed

‎coderd/apidoc/docs.go‎

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json‎

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/coderd.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ type Options struct {
271271

272272
// @BasePath /api/v2
273273

274+
// @securitydefinitions.apiKey Authorization
275+
// @in header
276+
// @name Authorizaiton
277+
274278
// @securitydefinitions.apiKey CoderSessionToken
275279
// @in header
276280
// @name Coder-Session-Token

‎docs/reference/api/enterprise.md‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎enterprise/coderd/scim.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (api *API) scimVerifyAuthHeader(r *http.Request) bool {
4040
//
4141
// @Summary SCIM 2.0: Get users
4242
// @ID scim-get-users
43-
// @SecurityCoderSessionToken
43+
// @SecurityAuthorization
4444
// @Produce application/scim+json
4545
// @Tags Enterprise
4646
// @Success 200
@@ -67,7 +67,7 @@ func (api *API) scimGetUsers(rw http.ResponseWriter, r *http.Request) {
6767
//
6868
// @Summary SCIM 2.0: Get user by ID
6969
// @ID scim-get-user-by-id
70-
// @SecurityCoderSessionToken
70+
// @SecurityAuthorization
7171
// @Produce application/scim+json
7272
// @Tags Enterprise
7373
// @Param id path string true "User ID" format(uuid)
@@ -118,7 +118,7 @@ var SCIMAuditAdditionalFields = map[string]string{
118118
//
119119
// @Summary SCIM 2.0: Create new user
120120
// @ID scim-create-new-user
121-
// @SecurityCoderSessionToken
121+
// @SecurityAuthorization
122122
// @Produce json
123123
// @Tags Enterprise
124124
// @Param request body coderd.SCIMUser true "New user"
@@ -254,7 +254,7 @@ func (api *API) scimPostUser(rw http.ResponseWriter, r *http.Request) {
254254
//
255255
// @Summary SCIM 2.0: Update user account
256256
// @ID scim-update-user-status
257-
// @SecurityCoderSessionToken
257+
// @SecurityAuthorization
258258
// @Produce application/scim+json
259259
// @Tags Enterprise
260260
// @Param id path string true "User ID" format(uuid)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp