Skip to main content

kobana dashboards portal-oauth-providers

Commands of kobana dashboards portal-oauth-providers. Every global option (Global options) applies here.

CommandHTTPDescription
portal-oauth-providers listGET /v1/portal_oauth_providersList OIDC providers
portal-oauth-providers createPOST /v1/portal_oauth_providersAdd OIDC provider
portal-oauth-providers testPOST /v1/portal_oauth_providers/testTest OIDC issuer
portal-oauth-providers updatePATCH /v1/portal_oauth_providers/{id}Update OIDC provider
portal-oauth-providers deleteDELETE /v1/portal_oauth_providers/{id}Delete OIDC provider

portal-oauth-providers list​

List OIDC providers

kobana dashboards portal-oauth-providers list [OPTIONS]

GET /v1/portal_oauth_providers

Lists the OpenID Connect providers portal users can sign in with (the whole set, unpaginated).

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The portal's OIDC providers.
404Resource not found in the current organization.

portal-oauth-providers create​

Add OIDC provider

kobana dashboards portal-oauth-providers create [OPTIONS]

POST /v1/portal_oauth_providers

Adds an OpenID Connect provider to the portal login.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
namestringyes
issuer_urlstring (uri)yesOpenID Connect issuer URL (https in production).
client_idstringyes
client_secretstringyesWrite-only: stored encrypted and never returned.
button_labelstringnoText of the login button; the name when empty.
scopesstringnoSpace-separated scopes. Default: openid email profile.
email_claimstringnoToken claim that carries the e-mail. Default: email.
enabledbooleanno

More fields and nested objects: kobana schema dashboards.portal-oauth-providers.create.

Responses

HTTPDescription
201The provider (without the secret).
400Request body failed validation.
404Resource not found in the current organization.

portal-oauth-providers test​

Test OIDC issuer

kobana dashboards portal-oauth-providers test [OPTIONS]

POST /v1/portal_oauth_providers/test

Fetches the issuer's discovery document and reports its endpoints, to validate the URL before saving. A discovery failure is a 200 with ok: false.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
issuer_urlstring (uri)yesOpenID Connect issuer URL (https in production).

More fields and nested objects: kobana schema dashboards.portal-oauth-providers.test.

Responses

HTTPDescription
200Result of the test.
400Request body failed validation.
404Resource not found in the current organization.

portal-oauth-providers update​

Update OIDC provider

kobana dashboards portal-oauth-providers update [ID] [OPTIONS]

PATCH /v1/portal_oauth_providers/{id}

Updates an OpenID Connect provider. Partial: only the fields sent change.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
namestringno
button_labelstringno
issuer_urlstring (uri)no
client_idstringno
client_secretstringnoOmitted or empty keeps the current secret; a value replaces it. Never returned. Required when issuer_url changes (another host, port or path): without it the update is refused with 422 CLIENT_SECRET_REQUIRED_FOR_ISSUER_CHANGE, so the stored secret is never sent to another provider.
scopesstringno
email_claimstringno
enabledbooleanno

More fields and nested objects: kobana schema dashboards.portal-oauth-providers.update.

Responses

HTTPDescription
200The provider (without the secret).
400Request body failed validation.
404Resource not found in the current organization.

portal-oauth-providers delete​

Delete OIDC provider

kobana dashboards portal-oauth-providers delete [ID] [OPTIONS]

DELETE /v1/portal_oauth_providers/{id}

Removes the provider; its button leaves the login page and nobody can sign in through it anymore.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Removed.
404Resource not found in the current organization.