SDK reference
Sign-in clients
Each route's function in the SDK, its call beside the same request in cURL.
orgProjectsOauthClients
GET/
The project's sign-in clients (never their secrets), with the issuer and its discovery URL.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients' \
-H "Authorization: Bearer $CACTIVE_TOKEN"postOrgProjectsOauthClients
POST/
Registers a client; the secret is in this response only.
Parameters and answerscurl -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/
Renames a sign-in client or replaces its redirect URIs.
Parameters and answerscurl -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/
Replaces the secret (the old one stops working at once); the new one is in this response only.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients/{clientId}/secret' \
-H "Authorization: Bearer $CACTIVE_TOKEN"deleteOrgProjectsOauthClientsByClientId
DELETE/
Deletes the client: sign-ins and refreshes with it stop at once.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients/{clientId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"