mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
improving auth update flow
This commit is contained in:
parent
39e61a47c7
commit
f6948d079e
29
api.oa3
29
api.oa3
@ -34,7 +34,7 @@ paths:
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- revision
|
- revision
|
||||||
summary: Websocket endpoint for receiving revision updates
|
summary: Websocket placeholder endpoint for receiving revision updates
|
||||||
operationId: websocket
|
operationId: websocket
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
@ -165,13 +165,31 @@ paths:
|
|||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
/portal/profile/authenication:
|
/portal/profile/authenication:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- portal
|
||||||
|
summary: Generate authentication update token
|
||||||
|
operationId: prepare-authentication
|
||||||
|
security:
|
||||||
|
- basicAuth: []
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: authentication ready
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
'401':
|
||||||
|
description: invalid handle or password
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- portal
|
- portal
|
||||||
summary: Update authentication with extra auth header
|
summary: Update authentication with extra auth header
|
||||||
operationId: set-handle
|
operationId: set-authentication
|
||||||
security:
|
security:
|
||||||
- basicAuth: []
|
- bearerAuth: []
|
||||||
- basicAuth: []
|
- basicAuth: []
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
@ -187,12 +205,12 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
/portal/profile/passcode:
|
/portal/profile/code:
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- portal
|
- portal
|
||||||
summary: Generate pass code
|
summary: Generate pass code
|
||||||
operationId: set-passcode
|
operationId: set-access-code
|
||||||
security:
|
security:
|
||||||
- basicAuth: []
|
- basicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -456,4 +474,3 @@ components:
|
|||||||
bearerAuth:
|
bearerAuth:
|
||||||
type: http
|
type: http
|
||||||
scheme: bearer
|
scheme: bearer
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user