SDK reference

Sign-in clients

Each route's function in the SDK, its call beside the same request in cURL.
orgProjectsOauthClients

GET/v1/orgs/:orgId/projects/:projectId/oauth-clients

The project's sign-in clients (never their secrets), with the issuer and its discovery URL.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgProjectsOauthClients

POST/v1/orgs/:orgId/projects/:projectId/oauth-clients

Registers a client; the secret is in this response only.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "redirectUris": [
      "example"
    ]
  }'
patchOrgProjectsOauthClientsByClientId

PATCH/v1/orgs/:orgId/projects/:projectId/oauth-clients/:clientId

Renames a sign-in client or replaces its redirect URIs.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients/{clientId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "redirectUris": [
      "example"
    ],
    "clientUri": "https://example.com"
  }'
postOrgProjectsOauthClientsSecret

POST/v1/orgs/:orgId/projects/:projectId/oauth-clients/:clientId/secret

Replaces the secret (the old one stops working at once); the new one is in this response only.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients/{clientId}/secret' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgProjectsOauthClientsByClientId

DELETE/v1/orgs/:orgId/projects/:projectId/oauth-clients/:clientId

Deletes the client: sign-ins and refreshes with it stop at once.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients/{clientId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"