|
|
|
@ -3206,6 +3206,63 @@ paths:
|
|
|
|
|
type: string
|
|
|
|
|
required:
|
|
|
|
|
- password
|
|
|
|
|
/auth/oidc-login:
|
|
|
|
|
get:
|
|
|
|
|
security: []
|
|
|
|
|
summary: Redirect to the OpenID Connect provider
|
|
|
|
|
description: Constructs the redirect URL to the OpenID Connect provider, and redirects the user to it.
|
|
|
|
|
tags:
|
|
|
|
|
- auth
|
|
|
|
|
responses:
|
|
|
|
|
'302':
|
|
|
|
|
description: Redirect to the authentication url for the OpenID Connect provider
|
|
|
|
|
headers:
|
|
|
|
|
Location:
|
|
|
|
|
schema:
|
|
|
|
|
type: string
|
|
|
|
|
example: https://example.com/auth/oidc/callback?response_type=code&client_id=client_id&redirect_uri=https%3A%2F%2Fexample.com%2Fauth%2Foidc%2Fcallback&scope=openid%20email&state=state
|
|
|
|
|
Set-Cookie:
|
|
|
|
|
schema:
|
|
|
|
|
type: string
|
|
|
|
|
example: 'oidc-state=123456789; HttpOnly; max-age=60000; Secure'
|
|
|
|
|
/auth/oidc-callback:
|
|
|
|
|
get:
|
|
|
|
|
security: []
|
|
|
|
|
summary: The callback endpoint for the OpenID Connect provider redirect
|
|
|
|
|
description: Takes the `code` and `state` parameters from the OpenID Connect provider, and exchanges them for a token.
|
|
|
|
|
parameters:
|
|
|
|
|
- in: query
|
|
|
|
|
name: code
|
|
|
|
|
required: true
|
|
|
|
|
schema:
|
|
|
|
|
type: string
|
|
|
|
|
example: '0sJj7IUW2h6aB3U6o-flioB0ARc7nW2E3PFItYd6xPKf5'
|
|
|
|
|
- in: query
|
|
|
|
|
name: state
|
|
|
|
|
required: true
|
|
|
|
|
schema:
|
|
|
|
|
type: string
|
|
|
|
|
example: '123456789'
|
|
|
|
|
- in: cookie
|
|
|
|
|
name: oidc-state
|
|
|
|
|
required: true
|
|
|
|
|
schema:
|
|
|
|
|
type: string
|
|
|
|
|
example: '123456789'
|
|
|
|
|
tags:
|
|
|
|
|
- auth
|
|
|
|
|
responses:
|
|
|
|
|
'302':
|
|
|
|
|
description: A redirect to the home page if successful or back to the login page if not
|
|
|
|
|
headers:
|
|
|
|
|
Location:
|
|
|
|
|
schema:
|
|
|
|
|
type: string
|
|
|
|
|
example: /
|
|
|
|
|
Set-Cookie:
|
|
|
|
|
schema:
|
|
|
|
|
type: string
|
|
|
|
|
example: 'token=deleted; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT'
|
|
|
|
|
/user:
|
|
|
|
|
get:
|
|
|
|
|
summary: Get all users
|
|
|
|
|