Applications
Create a New Application
Changed onTo create an application, send a POST request to /v1/tenants/$TENANT_ID/realms/$REALM_ID/applications. Values in the request body for read-only fields will be ignored. At present, there are only two supported protocol types for applications, oauth2 and oidc.
post/v1/tenants/{tenant_id}/realms/{realm_id}/applications
Request
- Base URLhttps://api-us.beyondidentity.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tenant_idstring required
Example:000176d94fd7b4d1
A unique identifier for a tenant.
realm_idstring required
Example:19a95130480dfa79
A unique identifier for a realm.
Request body
Example request
{
"application": {
"id": "38833c36-6f47-4992-9329-ea0a00915137",
"realm_id": "caf2ff640497591a",
"tenant_id": "00011f1183c67b69",
"resource_server_id": "84db69f5-48a8-4c11-8cda-1bae3a73f07e",
"authenticator_config_id": "73731b7f-eb76-4143-9b4b-81a720385f5a",
"display_name": "Pet Application",
"protocol_config": {
"allowed_scopes": [
"pets:read"
],
"client_id": "AYYNcuOSpfqIf33JeegCzDIT",
"client_secret": "wWD4mPzdsjms1LPekQSo0v9scOHLWy5wmMtKAR2JNhJPAKXv",
"confidentiality": "confidential",
"token_endpoint_auth_method": "client_secret_basic",
"grant_type": [
"authorization_code"
],
"redirect_uris": [
"https://auth.mypetapp.com/callback"
],
"token_configuration": {
"expires_after": 86400,
"token_signing_algorithm": "RS256",
"subject_field": "id"
},
"pkce": "s256",
"token_format": "self_contained"
}
}
}Response
The response will be a JSON object containing the standard attributes associated with an application.
Example response
{
"id": "38833c36-6f47-4992-9329-ea0a00915137",
"realm_id": "caf2ff640497591a",
"tenant_id": "00011f1183c67b69",
"resource_server_id": "84db69f5-48a8-4c11-8cda-1bae3a73f07e",
"authenticator_config_id": "73731b7f-eb76-4143-9b4b-81a720385f5a",
"display_name": "Pet Application",
"protocol_config": {
"allowed_scopes": [
"pets:read"
],
"client_id": "AYYNcuOSpfqIf33JeegCzDIT",
"client_secret": "wWD4mPzdsjms1LPekQSo0v9scOHLWy5wmMtKAR2JNhJPAKXv",
"confidentiality": "confidential",
"token_endpoint_auth_method": "client_secret_basic",
"grant_type": [
"authorization_code"
],
"redirect_uris": [
"https://auth.mypetapp.com/callback"
],
"token_configuration": {
"expires_after": 86400,
"token_signing_algorithm": "RS256",
"subject_field": "id"
},
"pkce": "s256",
"token_format": "self_contained"
}
}Changes
- info
added the new optional request property
////// - info
added the optional property
/////to the response with the status
- info