oauth
POST
https://lucidace.com /v1/oauth/token Request body
application/x-www-form-urlencoded
grant_type=authorization_code (code, redirect_uri, code_verifier), refresh_token (refresh_token), urn:ietf:params:oauth:grant-type:device_code (device_code) or urn:ietf:params:oauth:grant-type:jwt-bearer (assertion, project_id, optional scope and resource); client credentials by HTTP Basic or client_id/client_secret
assertionstringjwt-bearer grant (LC-SEC-28): the ID-JAG identity assertion.
client_idstringclient_secretstringcodestringcode_verifierstringdevice_codestringdevice_code grant (RFC 8628): the code
POST /v1/oauth/device_authorization returned.grant_typestringrequiredproject_idstringjwt-bearer grant: the project the token is bound to.
redirect_uristringrefresh_tokenstringresourcestringjwt-bearer grant: the protected resource (RFC 8707); must be this API.
scopestringjwt-bearer grant: optional subset of the assertion's scopes (space-separated).
{
"assertion": "string",
"client_id": "string",
"client_secret": "string",
"code": "string",
"code_verifier": "string",
"device_code": "string",
"grant_type": "string",
"project_id": "string",
"redirect_uri": "string",
"refresh_token": "string",
"resource": "string",
"scope": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/oauth/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d '{"assertion":"string","client_id":"string","client_secret":"string","code":"string","code_verifier":"string","device_code":"string","grant_type":"string","project_id":"string","redirect_uri":"string","refresh_token":"string","resource":"string","scope":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"access_token": "string",
"expires_in": 0,
"project_id": "string",
"refresh_token": "string",
"scope": "string",
"token_type": "string"
}Schema
access_tokenstringrequiredexpires_inintegerrequiredproject_idstringrequiredThe one project this token opens (chosen on the consent screen).
refresh_tokenstringAbsent for the jwt-bearer grant: ask the identity provider for a new assertion instead.
scopestringrequiredtoken_typestringrequiredBearer400 RFC 6749 error object
401 invalid_client
429
GET
https://lucidace.com /v1/orgs/{org_id}/oauth-apps Scope adminParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/oauth-apps"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"client_id": "string",
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"name": "string",
"org_id": "string",
"public_client": true,
"redirect_uris": [
"string"
],
"registration": "string",
"scopes": [
"string"
]
}
]Schema
client_idstringrequiredcreated_atstringrequiredidstringrequirednamestringrequiredorg_idstringNone for dynamically registered and metadata-document clients.public_clientbooleanrequiredNo client secret: the token endpoint takes the client id alone and PKCE proves the caller.
redirect_urisstring[]requiredregistrationstringrequiredorg (registered by an org admin, verified), dynamic (RFC 7591) or metadata (CIMD).scopesstring[]requiredThe most an authorization may grant (API key scope names).
403
404
POST
https://lucidace.com /v1/orgs/{org_id}/oauth-apps Scope adminParameters
org_idstringpathrequiredRequest body
application/json
namestringrequiredredirect_urisstring[]requiredExact redirect URIs:
https://..., or http://localhost / http://127.0.0.1 for development.scopesstring[]requiredAPI key scopes the app may request (
delegate is never grantable).{
"name": "string",
"redirect_uris": [
"string"
],
"scopes": [
"string"
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/oauth-apps" \
-H "Content-Type: application/json" \
-d '{"name":"string","redirect_uris":["string"],"scopes":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"client_id": "string",
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"name": "string",
"org_id": "string",
"public_client": true,
"redirect_uris": [
"string"
],
"registration": "string",
"scopes": [
"string"
],
"client_secret": "string"
}Schema
client_idstringrequiredcreated_atstringrequiredidstringrequirednamestringrequiredorg_idstringNone for dynamically registered and metadata-document clients.public_clientbooleanrequiredNo client secret: the token endpoint takes the client id alone and PKCE proves the caller.
redirect_urisstring[]requiredregistrationstringrequiredorg (registered by an org admin, verified), dynamic (RFC 7591) or metadata (CIMD).scopesstring[]requiredThe most an authorization may grant (API key scope names).
client_secretstringrequiredShown once; only its hash is stored.
400
403
404
DELETE
https://lucidace.com /v1/orgs/{org_id}/oauth-apps/{id} Scope adminParameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/oauth-apps/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204 every token of the app is gone too
404
GET
https://lucidace.com /v1/orgs/{org_id}/trusted-idps Scope adminParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/trusted-idps"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of TrustedIdp
Example
{
"data": [
{
"allowed_domains": [
"string"
],
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"issuer": "string",
"jwks": "string",
"jwks_uri": "string",
"max_scopes": [
"string"
],
"name": "string",
"org_id": "string"
}
],
"next_cursor": "string"
}Schema
dataTrustedIdp[]requiredShow child parameters
allowed_domainsstring[]requiredEmail domains this
IdP may assert users for.created_atstringrequiredidstringrequiredissuerstringrequiredjwksstringPinned public keys (a JWKS document); exclusive with
jwks_uri.jwks_uristringWhere the signing keys are fetched; exclusive with
jwks.max_scopesstring[]requiredThe most any assertion from this
IdP may grant (API key scope names).namestringrequiredorg_idstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/orgs/{org_id}/trusted-idps Scope adminParameters
org_idstringpathrequiredRequest body
application/json
A new trusted IdP. Give exactly one of jwks_uri and jwks.
allowed_domainsstring[]requiredEmail domains this
IdP may assert users for.issuerstringrequiredThe
iss the IdP signs assertions with (https://...).jwksstringPinned JWKS document (
{"keys":[...]}), used instead of fetching.jwks_uristringhttps:// URL of the IdP's JWKS, fetched on each redemption.max_scopesstring[]requiredThe most any assertion may grant (API key scope names; never
admin or delegate).namestringrequired{
"allowed_domains": [
"string"
],
"issuer": "string",
"jwks": "string",
"jwks_uri": "string",
"max_scopes": [
"string"
],
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/trusted-idps" \
-H "Content-Type: application/json" \
-d '{"allowed_domains":["string"],"issuer":"string","jwks":"string","jwks_uri":"string","max_scopes":["string"],"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"allowed_domains": [
"string"
],
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"issuer": "string",
"jwks": "string",
"jwks_uri": "string",
"max_scopes": [
"string"
],
"name": "string",
"org_id": "string"
}Schema
allowed_domainsstring[]requiredEmail domains this
IdP may assert users for.created_atstringrequiredidstringrequiredissuerstringrequiredjwksstringPinned public keys (a JWKS document); exclusive with
jwks_uri.jwks_uristringWhere the signing keys are fetched; exclusive with
jwks.max_scopesstring[]requiredThe most any assertion from this
IdP may grant (API key scope names).namestringrequiredorg_idstringrequired400
404
409 issuer already trusted
DELETE
https://lucidace.com /v1/orgs/{org_id}/trusted-idps/{id} Scope adminParameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/trusted-idps/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404
Updated