Skip to content

Product documentation

ConditionalAccessPolicy

The ConditionalAccessPolicy resource.

ConditionalAccessPolicy

The ConditionalAccessPolicy resource.

Base URL: https://api.stg.thoryn.org

Operations

MethodPathSummaryScopes
GET/api/v1/clients/{clientId}/access-policiesConditional Access Policy Listtenant:applications.read + tenant:clients.read
POST/api/v1/clients/{clientId}/access-policiesConditional Access Policy Createtenant:applications.write + tenant:clients.write
GET/api/v1/clients/{clientId}/access-policies/{id}Conditional Access Policy Gettenant:applications.read + tenant:clients.read
PATCH/api/v1/clients/{clientId}/access-policies/{id}Conditional Access Policy Updatetenant:applications.write + tenant:clients.write
DELETE/api/v1/clients/{clientId}/access-policies/{id}Conditional Access Policy Deletetenant:applications.write + tenant:clients.write

Operation details

GET /api/v1/clients/{clientId}/access-policies

Conditional Access Policy List

  • Operation ID: conditionalAccessPolicyList
  • Required scopes: tenant:applications.read + tenant:clients.read

Parameters:

NameInRequiredTypeDescription
clientIdpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

POST /api/v1/clients/{clientId}/access-policies

Conditional Access Policy Create

  • Operation ID: conditionalAccessPolicyCreate
  • Required scopes: tenant:applications.write + tenant:clients.write

Parameters:

NameInRequiredTypeDescription
clientIdpathyesstring

Request body (required): application/jsonCreatePolicyRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

GET /api/v1/clients/{clientId}/access-policies/{id}

Conditional Access Policy Get

  • Operation ID: conditionalAccessPolicyGet
  • Required scopes: tenant:applications.read + tenant:clients.read

Parameters:

NameInRequiredTypeDescription
clientIdpathyesstring
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

PATCH /api/v1/clients/{clientId}/access-policies/{id}

Conditional Access Policy Update

  • Operation ID: conditionalAccessPolicyUpdate
  • Required scopes: tenant:applications.write + tenant:clients.write

Parameters:

NameInRequiredTypeDescription
clientIdpathyesstring
idpathyesstring

Request body (required): application/jsonUpdatePolicyRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

DELETE /api/v1/clients/{clientId}/access-policies/{id}

Conditional Access Policy Delete

  • Operation ID: conditionalAccessPolicyDelete
  • Required scopes: tenant:applications.write + tenant:clients.write

Parameters:

NameInRequiredTypeDescription
clientIdpathyesstring
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)