mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auth: fix swagger response for get SSO settings endpoint (#80817)
fix swagger response for get SSO settings endpoint
This commit is contained in:
@@ -117,7 +117,7 @@ func (api *Api) getAuthorizedList(ctx context.Context, identity identity.Request
|
|||||||
// You need to have a permission with action `settings:read` with scope `settings:auth.<provider>:*`.
|
// You need to have a permission with action `settings:read` with scope `settings:auth.<provider>:*`.
|
||||||
//
|
//
|
||||||
// Responses:
|
// Responses:
|
||||||
// 200: okResponse
|
// 200: getSSOSettingsResponse
|
||||||
// 400: badRequestError
|
// 400: badRequestError
|
||||||
// 401: unauthorisedError
|
// 401: unauthorisedError
|
||||||
// 403: forbiddenError
|
// 403: forbiddenError
|
||||||
@@ -235,3 +235,9 @@ type RemoveProviderSettingsParams struct {
|
|||||||
// required:true
|
// required:true
|
||||||
Provider string `json:"key"`
|
Provider string `json:"key"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// swagger:response getSSOSettingsResponse
|
||||||
|
type GetSSOSettingsResponse struct {
|
||||||
|
// in: body
|
||||||
|
Body models.SSOSettings `json:"body"`
|
||||||
|
}
|
||||||
|
|||||||
@@ -11401,7 +11401,7 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"$ref": "#/responses/okResponse"
|
"$ref": "#/responses/getSSOSettingsResponse"
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"$ref": "#/responses/badRequestError"
|
"$ref": "#/responses/badRequestError"
|
||||||
@@ -22931,6 +22931,12 @@
|
|||||||
"$ref": "#/definitions/RoleDTO"
|
"$ref": "#/definitions/RoleDTO"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"getSSOSettingsResponse": {
|
||||||
|
"description": "(empty)",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/SSOSettings"
|
||||||
|
}
|
||||||
|
},
|
||||||
"getSharingOptionsResponse": {
|
"getSharingOptionsResponse": {
|
||||||
"description": "(empty)",
|
"description": "(empty)",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
|||||||
@@ -1169,6 +1169,16 @@
|
|||||||
},
|
},
|
||||||
"description": "(empty)"
|
"description": "(empty)"
|
||||||
},
|
},
|
||||||
|
"getSSOSettingsResponse": {
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/SSOSettings"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "(empty)"
|
||||||
|
},
|
||||||
"getSharingOptionsResponse": {
|
"getSharingOptionsResponse": {
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
@@ -25087,7 +25097,7 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"$ref": "#/components/responses/okResponse"
|
"$ref": "#/components/responses/getSSOSettingsResponse"
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"$ref": "#/components/responses/badRequestError"
|
"$ref": "#/components/responses/badRequestError"
|
||||||
|
|||||||
Reference in New Issue
Block a user