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

ACC-54 Описать API запроса на настройки oauth для accesso-admin #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion api-admin/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ paths:
500:
description: Something went wrong

"/oauth/settings.get":
post:
operationId: oauthSettingsGet
tags: [OAuth]
description: Get settings for oauth requests
responses:
200:
$ref: "#/components/responses/OAuthSettingsGet"
500:
description: Something went wrong

"/session/create":
post:
operationId: sessionCreate
Expand Down Expand Up @@ -239,7 +250,15 @@ components:
- "invalid_payload"
- "redirect_uri_claimed"


OAuthSettingsGet:
description: Settings exist
content:
application/json:
schema:
properties:
user:
dmi-ch marked this conversation as resolved.
Show resolved Hide resolved
$ref: "#/components/schemas/OauthSettings"

SessionCreateSucceeded:
description: Session created, token wrote to cookies
content:
Expand Down Expand Up @@ -394,6 +413,21 @@ components:
type: boolean

schemas:
OAuthSettings:
description: Settings for OAuth requests
type: object
properties:
required:
- redirectUri
- clientId
- clientSecret
redirectUri:
type: string
clientId:
type: string
clientSecret:
dmi-ch marked this conversation as resolved.
Show resolved Hide resolved
type: string

SessionUser:
description: Current user in a session
type: object
Expand Down