feat(governance): sign in to the archie binary from the Vue dashboard (#2017)
The binary serves the account routes the Vue client already calls: status,
setup, password and passkey sign-in, recovery, sign-out, OIDC, account
passkeys, password and recovery codes, personal tokens and capabilities.
The API authenticates a session cookie, a personal token or the bootstrap
admin token, and unsafe requests pass cross-origin protection. The
dashboard serves the Vue app at /.
Copied from internal/webui/{accounts,passkeys,personal_tokens,
api_capabilities,auth}.go, internal/infrastructure/oidc/{flow,oidc}.go and
internal/app/archieui/account_oidc.go, which archie-ui still imports.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
14 files changed
+2241
-53
No files matched your search
+905
-3
@@ -76,6 +76,31 @@ components:
|
||||
truncated:
|
||||
type: boolean
|
||||
type: object
|
||||
AuthenticationInputBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
oidc_audience:
|
||||
type: string
|
||||
oidc_client_id:
|
||||
type: string
|
||||
oidc_issuer:
|
||||
type: string
|
||||
public_url:
|
||||
type: string
|
||||
required:
|
||||
- public_url
|
||||
type: object
|
||||
ChangePasswordInputBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
current_password:
|
||||
type: string
|
||||
new_password:
|
||||
type: string
|
||||
required:
|
||||
- current_password
|
||||
- new_password
|
||||
type: object
|
||||
ChatActionDone:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -557,6 +582,17 @@ components:
|
||||
- name
|
||||
- kind
|
||||
type: object
|
||||
CreateTokenInputBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
days:
|
||||
format: int64
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
DeliveriesAttempt:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -934,6 +970,43 @@ components:
|
||||
- workflow
|
||||
- enabled
|
||||
type: object
|
||||
GovernanceAuthStatusBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
instance:
|
||||
type: string
|
||||
oidc:
|
||||
type: boolean
|
||||
public_url:
|
||||
type: string
|
||||
setup_required:
|
||||
type: boolean
|
||||
user:
|
||||
$ref: "#/components/schemas/GovernanceIdentity"
|
||||
required:
|
||||
- setup_required
|
||||
- user
|
||||
- oidc
|
||||
- public_url
|
||||
- instance
|
||||
type: object
|
||||
GovernanceAuthenticationSettings:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
oidc_audience:
|
||||
type: string
|
||||
oidc_client_id:
|
||||
type: string
|
||||
oidc_issuer:
|
||||
type: string
|
||||
public_url:
|
||||
type: string
|
||||
required:
|
||||
- public_url
|
||||
- oidc_issuer
|
||||
- oidc_audience
|
||||
- oidc_client_id
|
||||
type: object
|
||||
GovernanceBlackout:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -950,6 +1023,56 @@ components:
|
||||
- to
|
||||
- reason
|
||||
type: object
|
||||
GovernanceCapabilitiesBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
sections:
|
||||
additionalProperties:
|
||||
type: boolean
|
||||
type: object
|
||||
required:
|
||||
- sections
|
||||
type: object
|
||||
GovernanceCreatedToken:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
token:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- token
|
||||
type: object
|
||||
GovernanceIdentity:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
created_at:
|
||||
format: date-time
|
||||
type: string
|
||||
display_name:
|
||||
type: string
|
||||
id:
|
||||
type: string
|
||||
kind:
|
||||
type: string
|
||||
lifecycle:
|
||||
type: string
|
||||
updated_at:
|
||||
format: date-time
|
||||
type: string
|
||||
version:
|
||||
format: int64
|
||||
type: integer
|
||||
required:
|
||||
- id
|
||||
- kind
|
||||
- display_name
|
||||
- lifecycle
|
||||
- version
|
||||
- created_at
|
||||
- updated_at
|
||||
type: object
|
||||
GovernanceModel:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -977,6 +1100,38 @@ components:
|
||||
- model
|
||||
- answer
|
||||
type: object
|
||||
GovernancePasskey:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
type: object
|
||||
GovernancePasskeyFinishBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
credential: {}
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- credential
|
||||
type: object
|
||||
GovernancePasskeysBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
passkeys:
|
||||
items:
|
||||
$ref: "#/components/schemas/GovernancePasskey"
|
||||
type:
|
||||
- array
|
||||
- "null"
|
||||
required:
|
||||
- passkeys
|
||||
type: object
|
||||
GovernancePersonRequest:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -998,6 +1153,55 @@ components:
|
||||
- authority
|
||||
- identities
|
||||
type: object
|
||||
GovernancePersonalToken:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
created_at:
|
||||
format: date-time
|
||||
type: string
|
||||
expires_at:
|
||||
format: date-time
|
||||
type:
|
||||
- string
|
||||
- "null"
|
||||
id:
|
||||
type: string
|
||||
last_used_at:
|
||||
format: date-time
|
||||
type:
|
||||
- string
|
||||
- "null"
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
- created_at
|
||||
- expires_at
|
||||
- last_used_at
|
||||
type: object
|
||||
GovernanceRegistration:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
display_name:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
organisation_name:
|
||||
type: string
|
||||
password:
|
||||
type: string
|
||||
public_url:
|
||||
type: string
|
||||
role:
|
||||
type: string
|
||||
workspace_name:
|
||||
type: string
|
||||
required:
|
||||
- email
|
||||
- display_name
|
||||
- password
|
||||
type: object
|
||||
GovernanceSettingsRequest:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -1081,6 +1285,29 @@ components:
|
||||
- days
|
||||
- blackouts
|
||||
type: object
|
||||
GovernanceTokensBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
available:
|
||||
type: boolean
|
||||
tokens:
|
||||
items:
|
||||
$ref: "#/components/schemas/GovernancePersonalToken"
|
||||
type:
|
||||
- array
|
||||
- "null"
|
||||
required:
|
||||
- tokens
|
||||
- available
|
||||
type: object
|
||||
GovernanceUserBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
user:
|
||||
$ref: "#/components/schemas/GovernanceIdentity"
|
||||
required:
|
||||
- user
|
||||
type: object
|
||||
JudgementAction:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -1615,6 +1842,28 @@ components:
|
||||
required:
|
||||
- body
|
||||
type: object
|
||||
RecoverInputBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
password:
|
||||
type: string
|
||||
required:
|
||||
- email
|
||||
- code
|
||||
- password
|
||||
type: object
|
||||
RecoveryCodeReplyBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
required:
|
||||
- code
|
||||
type: object
|
||||
RenameInputBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -2090,6 +2339,17 @@ components:
|
||||
required:
|
||||
- text
|
||||
type: object
|
||||
SignInInputBody:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
email:
|
||||
type: string
|
||||
password:
|
||||
type: string
|
||||
required:
|
||||
- email
|
||||
- password
|
||||
type: object
|
||||
SystemAdminToken:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
@@ -2147,15 +2407,221 @@ components:
|
||||
- total_tokens
|
||||
type: object
|
||||
securitySchemes:
|
||||
admin:
|
||||
description: The bootstrap admin token
|
||||
bearer:
|
||||
description: A personal API token, or the bootstrap admin token
|
||||
scheme: bearer
|
||||
type: http
|
||||
session:
|
||||
description: The session a browser sign-in opens
|
||||
in: cookie
|
||||
name: archie_session
|
||||
type: apiKey
|
||||
info:
|
||||
title: Archie
|
||||
version: dev
|
||||
openapi: 3.1.0
|
||||
paths:
|
||||
/api/account/passkeys:
|
||||
get:
|
||||
operationId: list-passkeys
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernancePasskeysBody"
|
||||
description: OK
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: List your passkeys
|
||||
tags:
|
||||
- Accounts
|
||||
/api/account/passkeys/begin:
|
||||
post:
|
||||
operationId: begin-passkey-registration
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema: {}
|
||||
description: OK
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Start adding a passkey
|
||||
tags:
|
||||
- Accounts
|
||||
/api/account/passkeys/finish:
|
||||
post:
|
||||
operationId: finish-passkey-registration
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
- in: cookie
|
||||
name: archie_passkey_registration
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernancePasskeyFinishBody"
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceUserBody"
|
||||
description: OK
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Finish adding a passkey
|
||||
tags:
|
||||
- Accounts
|
||||
/api/account/passkeys/{id}:
|
||||
delete:
|
||||
operationId: delete-passkey
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
- in: path
|
||||
name: id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"204":
|
||||
description: No Content
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Remove a passkey
|
||||
tags:
|
||||
- Accounts
|
||||
/api/account/password:
|
||||
post:
|
||||
operationId: change-password
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ChangePasswordInputBody"
|
||||
required: true
|
||||
responses:
|
||||
"204":
|
||||
description: No Content
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Change your password
|
||||
tags:
|
||||
- Accounts
|
||||
/api/account/recovery:
|
||||
post:
|
||||
operationId: create-recovery-code
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/RecoveryCodeReplyBody"
|
||||
description: OK
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Create a recovery code
|
||||
tags:
|
||||
- Accounts
|
||||
/api/accounts:
|
||||
post:
|
||||
operationId: create-account
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceRegistration"
|
||||
required: true
|
||||
responses:
|
||||
"201":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceUserBody"
|
||||
description: Created
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Create an account
|
||||
tags:
|
||||
- Accounts
|
||||
/api/admin/token:
|
||||
post:
|
||||
operationId: rotate-admin-token
|
||||
@@ -2230,6 +2696,290 @@ paths:
|
||||
summary: Approve or refuse an action as the bootstrap admin
|
||||
tags:
|
||||
- Approvals
|
||||
/api/auth/login:
|
||||
post:
|
||||
operationId: sign-in
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/SignInInputBody"
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceUserBody"
|
||||
description: OK
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
security:
|
||||
- {}
|
||||
summary: Sign in with email and password
|
||||
tags:
|
||||
- Accounts
|
||||
/api/auth/logout:
|
||||
post:
|
||||
operationId: sign-out
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"204":
|
||||
description: No Content
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
security:
|
||||
- {}
|
||||
summary: Sign out
|
||||
tags:
|
||||
- Accounts
|
||||
/api/auth/passkey/begin:
|
||||
post:
|
||||
operationId: begin-passkey-sign-in
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema: {}
|
||||
description: OK
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
security:
|
||||
- {}
|
||||
summary: Start signing in with a passkey
|
||||
tags:
|
||||
- Accounts
|
||||
/api/auth/passkey/finish:
|
||||
post:
|
||||
operationId: finish-passkey-sign-in
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_passkey_login
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernancePasskeyFinishBody"
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceUserBody"
|
||||
description: OK
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
security:
|
||||
- {}
|
||||
summary: Finish signing in with a passkey
|
||||
tags:
|
||||
- Accounts
|
||||
/api/auth/recover:
|
||||
post:
|
||||
operationId: recover-account
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/RecoverInputBody"
|
||||
required: true
|
||||
responses:
|
||||
"204":
|
||||
description: No Content
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
security:
|
||||
- {}
|
||||
summary: Reset a password with a recovery code
|
||||
tags:
|
||||
- Accounts
|
||||
/api/auth/setup:
|
||||
post:
|
||||
operationId: set-up-account
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceRegistration"
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceUserBody"
|
||||
description: OK
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
security:
|
||||
- {}
|
||||
summary: Create the instance owner and sign in
|
||||
tags:
|
||||
- Accounts
|
||||
/api/auth/status:
|
||||
get:
|
||||
operationId: get-auth-status
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceAuthStatusBody"
|
||||
description: OK
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
security:
|
||||
- {}
|
||||
summary: Report setup and who is signed in
|
||||
tags:
|
||||
- Accounts
|
||||
/api/authentication:
|
||||
get:
|
||||
operationId: get-authentication
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceAuthenticationSettings"
|
||||
description: OK
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Get the authentication settings
|
||||
tags:
|
||||
- Accounts
|
||||
put:
|
||||
operationId: put-authentication
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/AuthenticationInputBody"
|
||||
required: true
|
||||
responses:
|
||||
"204":
|
||||
description: No Content
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Change the authentication settings
|
||||
tags:
|
||||
- Accounts
|
||||
/api/capabilities:
|
||||
get:
|
||||
operationId: get-capabilities
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceCapabilitiesBody"
|
||||
description: OK
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Report which dashboard sections this binary serves
|
||||
tags:
|
||||
- Accounts
|
||||
/api/chat/sessions:
|
||||
get:
|
||||
operationId: list-chat-sessions
|
||||
@@ -3753,6 +4503,74 @@ paths:
|
||||
summary: Get the bootstrap values, which only the config file sets
|
||||
tags:
|
||||
- System
|
||||
/api/tokens:
|
||||
get:
|
||||
operationId: list-personal-tokens
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceTokensBody"
|
||||
description: OK
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: List your personal API tokens
|
||||
tags:
|
||||
- Accounts
|
||||
post:
|
||||
operationId: create-personal-token
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CreateTokenInputBody"
|
||||
required: true
|
||||
responses:
|
||||
"201":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GovernanceCreatedToken"
|
||||
description: Created
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Create a personal API token
|
||||
tags:
|
||||
- Accounts
|
||||
/api/tokens/{id}:
|
||||
delete:
|
||||
operationId: revoke-personal-token
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"204":
|
||||
description: No Content
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: Revoke a personal API token
|
||||
tags:
|
||||
- Accounts
|
||||
/api/triggers:
|
||||
get:
|
||||
operationId: list-triggers
|
||||
@@ -3921,5 +4739,89 @@ paths:
|
||||
summary: Save a workflow document as its next version
|
||||
tags:
|
||||
- Workflows
|
||||
/oauth2/callback:
|
||||
get:
|
||||
operationId: finish-oidc-sign-in
|
||||
parameters:
|
||||
- explode: false
|
||||
in: query
|
||||
name: code
|
||||
schema:
|
||||
type: string
|
||||
- explode: false
|
||||
in: query
|
||||
name: state
|
||||
schema:
|
||||
type: string
|
||||
- explode: false
|
||||
in: query
|
||||
name: error
|
||||
schema:
|
||||
type: string
|
||||
- in: cookie
|
||||
name: archie_login_state
|
||||
schema:
|
||||
type: string
|
||||
- in: cookie
|
||||
name: archie_login_verifier
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"303":
|
||||
description: See Other
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Location:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
security:
|
||||
- {}
|
||||
summary: Complete the identity provider's sign-in
|
||||
tags:
|
||||
- Accounts
|
||||
/oauth2/login:
|
||||
get:
|
||||
operationId: begin-oidc-sign-in
|
||||
parameters:
|
||||
- in: cookie
|
||||
name: archie_session
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"303":
|
||||
description: See Other
|
||||
headers:
|
||||
Cache-Control:
|
||||
schema:
|
||||
type: string
|
||||
Location:
|
||||
schema:
|
||||
type: string
|
||||
Set-Cookie:
|
||||
schema:
|
||||
type: string
|
||||
default:
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
security:
|
||||
- {}
|
||||
summary: Send the browser to the identity provider
|
||||
tags:
|
||||
- Accounts
|
||||
security:
|
||||
- admin: []
|
||||
- session: []
|
||||
- bearer: []
|
||||
Reference in new issue
Block a user