package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.CreateClientRequestContent{
Name: "name",
}
client.Clients.Create(
context.TODO(),
request,
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.clients.create({
name: "name",
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.clients.create({
name: "name",
});
}
main();curl --request POST \
--url https://{tenantDomain}/api/v2/clients \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"addons": {
"aws": {
"lifetime_in_seconds": 22050,
"principal": "<string>",
"role": "<string>"
},
"azure_blob": {
"accountName": "<string>",
"blobName": "<string>",
"blob_delete": true,
"blob_read": true,
"blob_write": true,
"containerName": "<string>",
"container_delete": true,
"container_list": true,
"container_read": true,
"container_write": true,
"expiration": 1,
"signedIdentifier": "<string>",
"storageAccessKey": "<string>"
},
"azure_sb": {
"entityPath": "<string>",
"expiration": 123,
"namespace": "<string>",
"sasKey": "<string>",
"sasKeyName": "<string>"
},
"box": {},
"cloudbees": {},
"concur": {},
"dropbox": {},
"echosign": {
"domain": "<string>"
},
"egnyte": {
"domain": "<string>"
},
"firebase": {
"client_email": "<string>",
"lifetime_in_seconds": 123,
"private_key": "<string>",
"private_key_id": "<string>",
"secret": "<string>"
},
"newrelic": {
"account": "<string>"
},
"oag": {},
"office365": {
"connection": "<string>",
"domain": "<string>"
},
"salesforce": {
"entity_id": "<string>"
},
"salesforce_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"salesforce_sandbox_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"samlp": {
"audience": "<string>",
"authnContextClassRef": "<string>",
"createUpnClaim": true,
"destination": "<string>",
"digestAlgorithm": "<string>",
"issuer": "<string>",
"lifetimeInSeconds": 123,
"mapIdentities": true,
"mapUnknownClaimsAsIs": true,
"mappings": {},
"nameIdentifierFormat": "<string>",
"nameIdentifierProbes": [
"<string>"
],
"passthroughClaimsWithNoMapping": true,
"recipient": "<string>",
"signResponse": true,
"signatureAlgorithm": "<string>"
},
"sap_api": {
"clientid": "<string>",
"nameIdentifierFormat": "<string>",
"scope": "<string>",
"servicePassword": "<string>",
"tokenEndpointUrl": "<string>",
"usernameAttribute": "<string>"
},
"sentry": {
"base_url": "<string>",
"org_slug": "<string>"
},
"sharepoint": {
"external_url": [
"<string>"
],
"url": "<string>"
},
"springcm": {
"acsurl": "<string>"
},
"sso_integration": {
"name": "<string>",
"version": "<string>"
},
"wams": {
"masterkey": "<string>"
},
"wsfed": {},
"zendesk": {
"accountName": "<string>"
},
"zoom": {
"account": "<string>"
}
},
"allowed_clients": [
"<string>"
],
"allowed_logout_urls": [
"<string>"
],
"allowed_origins": [
"<string>"
],
"async_approval_notification_channels": [],
"callbacks": [
"<string>"
],
"client_aliases": [
"<string>"
],
"client_authentication_methods": {},
"client_metadata": {},
"cross_origin_authentication": false,
"cross_origin_loc": "<string>",
"custom_login_page": "<string>",
"custom_login_page_on": true,
"custom_login_page_preview": "<string>",
"default_organization": {
"flows": [
"client_credentials"
],
"organization_id": "<string>"
},
"description": "<string>",
"encryption_key": {
"cert": "<string>",
"pub": "<string>",
"subject": "<string>"
},
"fedcm_login": {
"google": {
"is_enabled": false
}
},
"form_template": "<string>",
"grant_types": [
"<string>"
],
"initiate_login_uri": "<string>",
"is_first_party": true,
"is_token_endpoint_ip_header_trusted": false,
"jwt_configuration": {
"alg": "HS256",
"lifetime_in_seconds": 36000,
"scopes": {},
"secret_encoded": true
},
"logo_uri": "<string>",
"mobile": {
"android": {
"app_package_name": "",
"sha256_cert_fingerprints": [
"<string>"
]
},
"ios": {
"app_bundle_identifier": "",
"team_id": ""
}
},
"native_social_login": {
"apple": {
"enabled": false
},
"facebook": {
"enabled": false
},
"google": {
"enabled": false
}
},
"oidc_backchannel_logout": {
"backchannel_logout_initiators": {
"selected_initiators": []
},
"backchannel_logout_session_metadata": {
"include": true
},
"backchannel_logout_urls": [
"<string>"
]
},
"oidc_conformant": false,
"oidc_logout": {
"backchannel_logout_initiators": {
"selected_initiators": []
},
"backchannel_logout_session_metadata": {
"include": true
},
"backchannel_logout_urls": [
"<string>"
]
},
"organization_discovery_methods": [],
"organization_require_behavior": "no_prompt",
"organization_usage": "deny",
"par_request_expiry": 305,
"refresh_token": {
"expiration_type": "non-expiring",
"rotation_type": "non-rotating",
"idle_token_lifetime": 2,
"infinite_idle_token_lifetime": false,
"infinite_token_lifetime": true,
"leeway": 0,
"policies": [
{
"audience": "<string>",
"scope": [
"<string>"
]
}
],
"token_lifetime": 78894000
},
"require_proof_of_possession": false,
"require_pushed_authorization_requests": false,
"resource_server_identifier": "<string>",
"session_transfer": {
"allow_refresh_token": false,
"allowed_authentication_methods": [],
"can_create_session_transfer_token": false,
"delegation": {
"allow_delegated_access": false,
"enforce_device_binding": "ip"
},
"enforce_cascade_revocation": true,
"enforce_device_binding": "ip",
"enforce_online_refresh_tokens": true
},
"signed_request_object": {
"credentials": [
{
"credential_type": "public_key",
"pem": "-----BEGIN PUBLIC KEY-----\r\nMIIBIjANBg...\r\n-----END PUBLIC KEY-----\r\n",
"alg": "RS256",
"expires_at": "2023-02-07T12:40:17.807Z",
"kid": "<string>",
"name": "",
"parse_expiry_from_cert": false
}
],
"required": false
},
"skip_non_verifiable_callback_uri_confirmation_prompt": true,
"sso": true,
"sso_disabled": true,
"token_endpoint_auth_method": "none",
"token_exchange": {
"allow_any_profile_of_type": []
},
"web_origins": [
"<string>"
]
}
'import requests
url = "https://{tenantDomain}/api/v2/clients"
payload = {
"name": "<string>",
"addons": {
"aws": {
"lifetime_in_seconds": 22050,
"principal": "<string>",
"role": "<string>"
},
"azure_blob": {
"accountName": "<string>",
"blobName": "<string>",
"blob_delete": True,
"blob_read": True,
"blob_write": True,
"containerName": "<string>",
"container_delete": True,
"container_list": True,
"container_read": True,
"container_write": True,
"expiration": 1,
"signedIdentifier": "<string>",
"storageAccessKey": "<string>"
},
"azure_sb": {
"entityPath": "<string>",
"expiration": 123,
"namespace": "<string>",
"sasKey": "<string>",
"sasKeyName": "<string>"
},
"box": {},
"cloudbees": {},
"concur": {},
"dropbox": {},
"echosign": { "domain": "<string>" },
"egnyte": { "domain": "<string>" },
"firebase": {
"client_email": "<string>",
"lifetime_in_seconds": 123,
"private_key": "<string>",
"private_key_id": "<string>",
"secret": "<string>"
},
"newrelic": { "account": "<string>" },
"oag": {},
"office365": {
"connection": "<string>",
"domain": "<string>"
},
"salesforce": { "entity_id": "<string>" },
"salesforce_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"salesforce_sandbox_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"samlp": {
"audience": "<string>",
"authnContextClassRef": "<string>",
"createUpnClaim": True,
"destination": "<string>",
"digestAlgorithm": "<string>",
"issuer": "<string>",
"lifetimeInSeconds": 123,
"mapIdentities": True,
"mapUnknownClaimsAsIs": True,
"mappings": {},
"nameIdentifierFormat": "<string>",
"nameIdentifierProbes": ["<string>"],
"passthroughClaimsWithNoMapping": True,
"recipient": "<string>",
"signResponse": True,
"signatureAlgorithm": "<string>"
},
"sap_api": {
"clientid": "<string>",
"nameIdentifierFormat": "<string>",
"scope": "<string>",
"servicePassword": "<string>",
"tokenEndpointUrl": "<string>",
"usernameAttribute": "<string>"
},
"sentry": {
"base_url": "<string>",
"org_slug": "<string>"
},
"sharepoint": {
"external_url": ["<string>"],
"url": "<string>"
},
"springcm": { "acsurl": "<string>" },
"sso_integration": {
"name": "<string>",
"version": "<string>"
},
"wams": { "masterkey": "<string>" },
"wsfed": {},
"zendesk": { "accountName": "<string>" },
"zoom": { "account": "<string>" }
},
"allowed_clients": ["<string>"],
"allowed_logout_urls": ["<string>"],
"allowed_origins": ["<string>"],
"async_approval_notification_channels": [],
"callbacks": ["<string>"],
"client_aliases": ["<string>"],
"client_authentication_methods": {},
"client_metadata": {},
"cross_origin_authentication": False,
"cross_origin_loc": "<string>",
"custom_login_page": "<string>",
"custom_login_page_on": True,
"custom_login_page_preview": "<string>",
"default_organization": {
"flows": ["client_credentials"],
"organization_id": "<string>"
},
"description": "<string>",
"encryption_key": {
"cert": "<string>",
"pub": "<string>",
"subject": "<string>"
},
"fedcm_login": { "google": { "is_enabled": False } },
"form_template": "<string>",
"grant_types": ["<string>"],
"initiate_login_uri": "<string>",
"is_first_party": True,
"is_token_endpoint_ip_header_trusted": False,
"jwt_configuration": {
"alg": "HS256",
"lifetime_in_seconds": 36000,
"scopes": {},
"secret_encoded": True
},
"logo_uri": "<string>",
"mobile": {
"android": {
"app_package_name": "",
"sha256_cert_fingerprints": ["<string>"]
},
"ios": {
"app_bundle_identifier": "",
"team_id": ""
}
},
"native_social_login": {
"apple": { "enabled": False },
"facebook": { "enabled": False },
"google": { "enabled": False }
},
"oidc_backchannel_logout": {
"backchannel_logout_initiators": { "selected_initiators": [] },
"backchannel_logout_session_metadata": { "include": True },
"backchannel_logout_urls": ["<string>"]
},
"oidc_conformant": False,
"oidc_logout": {
"backchannel_logout_initiators": { "selected_initiators": [] },
"backchannel_logout_session_metadata": { "include": True },
"backchannel_logout_urls": ["<string>"]
},
"organization_discovery_methods": [],
"organization_require_behavior": "no_prompt",
"organization_usage": "deny",
"par_request_expiry": 305,
"refresh_token": {
"expiration_type": "non-expiring",
"rotation_type": "non-rotating",
"idle_token_lifetime": 2,
"infinite_idle_token_lifetime": False,
"infinite_token_lifetime": True,
"leeway": 0,
"policies": [
{
"audience": "<string>",
"scope": ["<string>"]
}
],
"token_lifetime": 78894000
},
"require_proof_of_possession": False,
"require_pushed_authorization_requests": False,
"resource_server_identifier": "<string>",
"session_transfer": {
"allow_refresh_token": False,
"allowed_authentication_methods": [],
"can_create_session_transfer_token": False,
"delegation": {
"allow_delegated_access": False,
"enforce_device_binding": "ip"
},
"enforce_cascade_revocation": True,
"enforce_device_binding": "ip",
"enforce_online_refresh_tokens": True
},
"signed_request_object": {
"credentials": [
{
"credential_type": "public_key",
"pem": "-----BEGIN PUBLIC KEY-----
MIIBIjANBg...
-----END PUBLIC KEY-----
",
"alg": "RS256",
"expires_at": "2023-02-07T12:40:17.807Z",
"kid": "<string>",
"name": "",
"parse_expiry_from_cert": False
}
],
"required": False
},
"skip_non_verifiable_callback_uri_confirmation_prompt": True,
"sso": True,
"sso_disabled": True,
"token_endpoint_auth_method": "none",
"token_exchange": { "allow_any_profile_of_type": [] },
"web_origins": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/clients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'addons' => [
'aws' => [
'lifetime_in_seconds' => 22050,
'principal' => '<string>',
'role' => '<string>'
],
'azure_blob' => [
'accountName' => '<string>',
'blobName' => '<string>',
'blob_delete' => true,
'blob_read' => true,
'blob_write' => true,
'containerName' => '<string>',
'container_delete' => true,
'container_list' => true,
'container_read' => true,
'container_write' => true,
'expiration' => 1,
'signedIdentifier' => '<string>',
'storageAccessKey' => '<string>'
],
'azure_sb' => [
'entityPath' => '<string>',
'expiration' => 123,
'namespace' => '<string>',
'sasKey' => '<string>',
'sasKeyName' => '<string>'
],
'box' => [
],
'cloudbees' => [
],
'concur' => [
],
'dropbox' => [
],
'echosign' => [
'domain' => '<string>'
],
'egnyte' => [
'domain' => '<string>'
],
'firebase' => [
'client_email' => '<string>',
'lifetime_in_seconds' => 123,
'private_key' => '<string>',
'private_key_id' => '<string>',
'secret' => '<string>'
],
'newrelic' => [
'account' => '<string>'
],
'oag' => [
],
'office365' => [
'connection' => '<string>',
'domain' => '<string>'
],
'salesforce' => [
'entity_id' => '<string>'
],
'salesforce_api' => [
'clientid' => '<string>',
'communityName' => '<string>',
'community_url_section' => '<string>',
'principal' => '<string>'
],
'salesforce_sandbox_api' => [
'clientid' => '<string>',
'communityName' => '<string>',
'community_url_section' => '<string>',
'principal' => '<string>'
],
'samlp' => [
'audience' => '<string>',
'authnContextClassRef' => '<string>',
'createUpnClaim' => true,
'destination' => '<string>',
'digestAlgorithm' => '<string>',
'issuer' => '<string>',
'lifetimeInSeconds' => 123,
'mapIdentities' => true,
'mapUnknownClaimsAsIs' => true,
'mappings' => [
],
'nameIdentifierFormat' => '<string>',
'nameIdentifierProbes' => [
'<string>'
],
'passthroughClaimsWithNoMapping' => true,
'recipient' => '<string>',
'signResponse' => true,
'signatureAlgorithm' => '<string>'
],
'sap_api' => [
'clientid' => '<string>',
'nameIdentifierFormat' => '<string>',
'scope' => '<string>',
'servicePassword' => '<string>',
'tokenEndpointUrl' => '<string>',
'usernameAttribute' => '<string>'
],
'sentry' => [
'base_url' => '<string>',
'org_slug' => '<string>'
],
'sharepoint' => [
'external_url' => [
'<string>'
],
'url' => '<string>'
],
'springcm' => [
'acsurl' => '<string>'
],
'sso_integration' => [
'name' => '<string>',
'version' => '<string>'
],
'wams' => [
'masterkey' => '<string>'
],
'wsfed' => [
],
'zendesk' => [
'accountName' => '<string>'
],
'zoom' => [
'account' => '<string>'
]
],
'allowed_clients' => [
'<string>'
],
'allowed_logout_urls' => [
'<string>'
],
'allowed_origins' => [
'<string>'
],
'async_approval_notification_channels' => [
],
'callbacks' => [
'<string>'
],
'client_aliases' => [
'<string>'
],
'client_authentication_methods' => [
],
'client_metadata' => [
],
'cross_origin_authentication' => false,
'cross_origin_loc' => '<string>',
'custom_login_page' => '<string>',
'custom_login_page_on' => true,
'custom_login_page_preview' => '<string>',
'default_organization' => [
'flows' => [
'client_credentials'
],
'organization_id' => '<string>'
],
'description' => '<string>',
'encryption_key' => [
'cert' => '<string>',
'pub' => '<string>',
'subject' => '<string>'
],
'fedcm_login' => [
'google' => [
'is_enabled' => false
]
],
'form_template' => '<string>',
'grant_types' => [
'<string>'
],
'initiate_login_uri' => '<string>',
'is_first_party' => true,
'is_token_endpoint_ip_header_trusted' => false,
'jwt_configuration' => [
'alg' => 'HS256',
'lifetime_in_seconds' => 36000,
'scopes' => [
],
'secret_encoded' => true
],
'logo_uri' => '<string>',
'mobile' => [
'android' => [
'app_package_name' => '',
'sha256_cert_fingerprints' => [
'<string>'
]
],
'ios' => [
'app_bundle_identifier' => '',
'team_id' => ''
]
],
'native_social_login' => [
'apple' => [
'enabled' => false
],
'facebook' => [
'enabled' => false
],
'google' => [
'enabled' => false
]
],
'oidc_backchannel_logout' => [
'backchannel_logout_initiators' => [
'selected_initiators' => [
]
],
'backchannel_logout_session_metadata' => [
'include' => true
],
'backchannel_logout_urls' => [
'<string>'
]
],
'oidc_conformant' => false,
'oidc_logout' => [
'backchannel_logout_initiators' => [
'selected_initiators' => [
]
],
'backchannel_logout_session_metadata' => [
'include' => true
],
'backchannel_logout_urls' => [
'<string>'
]
],
'organization_discovery_methods' => [
],
'organization_require_behavior' => 'no_prompt',
'organization_usage' => 'deny',
'par_request_expiry' => 305,
'refresh_token' => [
'expiration_type' => 'non-expiring',
'rotation_type' => 'non-rotating',
'idle_token_lifetime' => 2,
'infinite_idle_token_lifetime' => false,
'infinite_token_lifetime' => true,
'leeway' => 0,
'policies' => [
[
'audience' => '<string>',
'scope' => [
'<string>'
]
]
],
'token_lifetime' => 78894000
],
'require_proof_of_possession' => false,
'require_pushed_authorization_requests' => false,
'resource_server_identifier' => '<string>',
'session_transfer' => [
'allow_refresh_token' => false,
'allowed_authentication_methods' => [
],
'can_create_session_transfer_token' => false,
'delegation' => [
'allow_delegated_access' => false,
'enforce_device_binding' => 'ip'
],
'enforce_cascade_revocation' => true,
'enforce_device_binding' => 'ip',
'enforce_online_refresh_tokens' => true
],
'signed_request_object' => [
'credentials' => [
[
'credential_type' => 'public_key',
'pem' => '-----BEGIN PUBLIC KEY-----
MIIBIjANBg...
-----END PUBLIC KEY-----
',
'alg' => 'RS256',
'expires_at' => '2023-02-07T12:40:17.807Z',
'kid' => '<string>',
'name' => '',
'parse_expiry_from_cert' => false
]
],
'required' => false
],
'skip_non_verifiable_callback_uri_confirmation_prompt' => true,
'sso' => true,
'sso_disabled' => true,
'token_endpoint_auth_method' => 'none',
'token_exchange' => [
'allow_any_profile_of_type' => [
]
],
'web_origins' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://{tenantDomain}/api/v2/clients")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"addons\": {\n \"aws\": {\n \"lifetime_in_seconds\": 22050,\n \"principal\": \"<string>\",\n \"role\": \"<string>\"\n },\n \"azure_blob\": {\n \"accountName\": \"<string>\",\n \"blobName\": \"<string>\",\n \"blob_delete\": true,\n \"blob_read\": true,\n \"blob_write\": true,\n \"containerName\": \"<string>\",\n \"container_delete\": true,\n \"container_list\": true,\n \"container_read\": true,\n \"container_write\": true,\n \"expiration\": 1,\n \"signedIdentifier\": \"<string>\",\n \"storageAccessKey\": \"<string>\"\n },\n \"azure_sb\": {\n \"entityPath\": \"<string>\",\n \"expiration\": 123,\n \"namespace\": \"<string>\",\n \"sasKey\": \"<string>\",\n \"sasKeyName\": \"<string>\"\n },\n \"box\": {},\n \"cloudbees\": {},\n \"concur\": {},\n \"dropbox\": {},\n \"echosign\": {\n \"domain\": \"<string>\"\n },\n \"egnyte\": {\n \"domain\": \"<string>\"\n },\n \"firebase\": {\n \"client_email\": \"<string>\",\n \"lifetime_in_seconds\": 123,\n \"private_key\": \"<string>\",\n \"private_key_id\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"newrelic\": {\n \"account\": \"<string>\"\n },\n \"oag\": {},\n \"office365\": {\n \"connection\": \"<string>\",\n \"domain\": \"<string>\"\n },\n \"salesforce\": {\n \"entity_id\": \"<string>\"\n },\n \"salesforce_api\": {\n \"clientid\": \"<string>\",\n \"communityName\": \"<string>\",\n \"community_url_section\": \"<string>\",\n \"principal\": \"<string>\"\n },\n \"salesforce_sandbox_api\": {\n \"clientid\": \"<string>\",\n \"communityName\": \"<string>\",\n \"community_url_section\": \"<string>\",\n \"principal\": \"<string>\"\n },\n \"samlp\": {\n \"audience\": \"<string>\",\n \"authnContextClassRef\": \"<string>\",\n \"createUpnClaim\": true,\n \"destination\": \"<string>\",\n \"digestAlgorithm\": \"<string>\",\n \"issuer\": \"<string>\",\n \"lifetimeInSeconds\": 123,\n \"mapIdentities\": true,\n \"mapUnknownClaimsAsIs\": true,\n \"mappings\": {},\n \"nameIdentifierFormat\": \"<string>\",\n \"nameIdentifierProbes\": [\n \"<string>\"\n ],\n \"passthroughClaimsWithNoMapping\": true,\n \"recipient\": \"<string>\",\n \"signResponse\": true,\n \"signatureAlgorithm\": \"<string>\"\n },\n \"sap_api\": {\n \"clientid\": \"<string>\",\n \"nameIdentifierFormat\": \"<string>\",\n \"scope\": \"<string>\",\n \"servicePassword\": \"<string>\",\n \"tokenEndpointUrl\": \"<string>\",\n \"usernameAttribute\": \"<string>\"\n },\n \"sentry\": {\n \"base_url\": \"<string>\",\n \"org_slug\": \"<string>\"\n },\n \"sharepoint\": {\n \"external_url\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\n },\n \"springcm\": {\n \"acsurl\": \"<string>\"\n },\n \"sso_integration\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"wams\": {\n \"masterkey\": \"<string>\"\n },\n \"wsfed\": {},\n \"zendesk\": {\n \"accountName\": \"<string>\"\n },\n \"zoom\": {\n \"account\": \"<string>\"\n }\n },\n \"allowed_clients\": [\n \"<string>\"\n ],\n \"allowed_logout_urls\": [\n \"<string>\"\n ],\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"async_approval_notification_channels\": [],\n \"callbacks\": [\n \"<string>\"\n ],\n \"client_aliases\": [\n \"<string>\"\n ],\n \"client_authentication_methods\": {},\n \"client_metadata\": {},\n \"cross_origin_authentication\": false,\n \"cross_origin_loc\": \"<string>\",\n \"custom_login_page\": \"<string>\",\n \"custom_login_page_on\": true,\n \"custom_login_page_preview\": \"<string>\",\n \"default_organization\": {\n \"flows\": [\n \"client_credentials\"\n ],\n \"organization_id\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"encryption_key\": {\n \"cert\": \"<string>\",\n \"pub\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"fedcm_login\": {\n \"google\": {\n \"is_enabled\": false\n }\n },\n \"form_template\": \"<string>\",\n \"grant_types\": [\n \"<string>\"\n ],\n \"initiate_login_uri\": \"<string>\",\n \"is_first_party\": true,\n \"is_token_endpoint_ip_header_trusted\": false,\n \"jwt_configuration\": {\n \"alg\": \"HS256\",\n \"lifetime_in_seconds\": 36000,\n \"scopes\": {},\n \"secret_encoded\": true\n },\n \"logo_uri\": \"<string>\",\n \"mobile\": {\n \"android\": {\n \"app_package_name\": \"\",\n \"sha256_cert_fingerprints\": [\n \"<string>\"\n ]\n },\n \"ios\": {\n \"app_bundle_identifier\": \"\",\n \"team_id\": \"\"\n }\n },\n \"native_social_login\": {\n \"apple\": {\n \"enabled\": false\n },\n \"facebook\": {\n \"enabled\": false\n },\n \"google\": {\n \"enabled\": false\n }\n },\n \"oidc_backchannel_logout\": {\n \"backchannel_logout_initiators\": {\n \"selected_initiators\": []\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n },\n \"backchannel_logout_urls\": [\n \"<string>\"\n ]\n },\n \"oidc_conformant\": false,\n \"oidc_logout\": {\n \"backchannel_logout_initiators\": {\n \"selected_initiators\": []\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n },\n \"backchannel_logout_urls\": [\n \"<string>\"\n ]\n },\n \"organization_discovery_methods\": [],\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_usage\": \"deny\",\n \"par_request_expiry\": 305,\n \"refresh_token\": {\n \"expiration_type\": \"non-expiring\",\n \"rotation_type\": \"non-rotating\",\n \"idle_token_lifetime\": 2,\n \"infinite_idle_token_lifetime\": false,\n \"infinite_token_lifetime\": true,\n \"leeway\": 0,\n \"policies\": [\n {\n \"audience\": \"<string>\",\n \"scope\": [\n \"<string>\"\n ]\n }\n ],\n \"token_lifetime\": 78894000\n },\n \"require_proof_of_possession\": false,\n \"require_pushed_authorization_requests\": false,\n \"resource_server_identifier\": \"<string>\",\n \"session_transfer\": {\n \"allow_refresh_token\": false,\n \"allowed_authentication_methods\": [],\n \"can_create_session_transfer_token\": false,\n \"delegation\": {\n \"allow_delegated_access\": false,\n \"enforce_device_binding\": \"ip\"\n },\n \"enforce_cascade_revocation\": true,\n \"enforce_device_binding\": \"ip\",\n \"enforce_online_refresh_tokens\": true\n },\n \"signed_request_object\": {\n \"credentials\": [\n {\n \"credential_type\": \"public_key\",\n \"pem\": \"-----BEGIN PUBLIC KEY-----\\r\\nMIIBIjANBg...\\r\\n-----END PUBLIC KEY-----\\r\\n\",\n \"alg\": \"RS256\",\n \"expires_at\": \"2023-02-07T12:40:17.807Z\",\n \"kid\": \"<string>\",\n \"name\": \"\",\n \"parse_expiry_from_cert\": false\n }\n ],\n \"required\": false\n },\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"sso\": true,\n \"sso_disabled\": true,\n \"token_endpoint_auth_method\": \"none\",\n \"token_exchange\": {\n \"allow_any_profile_of_type\": []\n },\n \"web_origins\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"addons\": {\n \"aws\": {\n \"lifetime_in_seconds\": 22050,\n \"principal\": \"<string>\",\n \"role\": \"<string>\"\n },\n \"azure_blob\": {\n \"accountName\": \"<string>\",\n \"blobName\": \"<string>\",\n \"blob_delete\": true,\n \"blob_read\": true,\n \"blob_write\": true,\n \"containerName\": \"<string>\",\n \"container_delete\": true,\n \"container_list\": true,\n \"container_read\": true,\n \"container_write\": true,\n \"expiration\": 1,\n \"signedIdentifier\": \"<string>\",\n \"storageAccessKey\": \"<string>\"\n },\n \"azure_sb\": {\n \"entityPath\": \"<string>\",\n \"expiration\": 123,\n \"namespace\": \"<string>\",\n \"sasKey\": \"<string>\",\n \"sasKeyName\": \"<string>\"\n },\n \"box\": {},\n \"cloudbees\": {},\n \"concur\": {},\n \"dropbox\": {},\n \"echosign\": {\n \"domain\": \"<string>\"\n },\n \"egnyte\": {\n \"domain\": \"<string>\"\n },\n \"firebase\": {\n \"client_email\": \"<string>\",\n \"lifetime_in_seconds\": 123,\n \"private_key\": \"<string>\",\n \"private_key_id\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"newrelic\": {\n \"account\": \"<string>\"\n },\n \"oag\": {},\n \"office365\": {\n \"connection\": \"<string>\",\n \"domain\": \"<string>\"\n },\n \"salesforce\": {\n \"entity_id\": \"<string>\"\n },\n \"salesforce_api\": {\n \"clientid\": \"<string>\",\n \"communityName\": \"<string>\",\n \"community_url_section\": \"<string>\",\n \"principal\": \"<string>\"\n },\n \"salesforce_sandbox_api\": {\n \"clientid\": \"<string>\",\n \"communityName\": \"<string>\",\n \"community_url_section\": \"<string>\",\n \"principal\": \"<string>\"\n },\n \"samlp\": {\n \"audience\": \"<string>\",\n \"authnContextClassRef\": \"<string>\",\n \"createUpnClaim\": true,\n \"destination\": \"<string>\",\n \"digestAlgorithm\": \"<string>\",\n \"issuer\": \"<string>\",\n \"lifetimeInSeconds\": 123,\n \"mapIdentities\": true,\n \"mapUnknownClaimsAsIs\": true,\n \"mappings\": {},\n \"nameIdentifierFormat\": \"<string>\",\n \"nameIdentifierProbes\": [\n \"<string>\"\n ],\n \"passthroughClaimsWithNoMapping\": true,\n \"recipient\": \"<string>\",\n \"signResponse\": true,\n \"signatureAlgorithm\": \"<string>\"\n },\n \"sap_api\": {\n \"clientid\": \"<string>\",\n \"nameIdentifierFormat\": \"<string>\",\n \"scope\": \"<string>\",\n \"servicePassword\": \"<string>\",\n \"tokenEndpointUrl\": \"<string>\",\n \"usernameAttribute\": \"<string>\"\n },\n \"sentry\": {\n \"base_url\": \"<string>\",\n \"org_slug\": \"<string>\"\n },\n \"sharepoint\": {\n \"external_url\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\n },\n \"springcm\": {\n \"acsurl\": \"<string>\"\n },\n \"sso_integration\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"wams\": {\n \"masterkey\": \"<string>\"\n },\n \"wsfed\": {},\n \"zendesk\": {\n \"accountName\": \"<string>\"\n },\n \"zoom\": {\n \"account\": \"<string>\"\n }\n },\n \"allowed_clients\": [\n \"<string>\"\n ],\n \"allowed_logout_urls\": [\n \"<string>\"\n ],\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"async_approval_notification_channels\": [],\n \"callbacks\": [\n \"<string>\"\n ],\n \"client_aliases\": [\n \"<string>\"\n ],\n \"client_authentication_methods\": {},\n \"client_metadata\": {},\n \"cross_origin_authentication\": false,\n \"cross_origin_loc\": \"<string>\",\n \"custom_login_page\": \"<string>\",\n \"custom_login_page_on\": true,\n \"custom_login_page_preview\": \"<string>\",\n \"default_organization\": {\n \"flows\": [\n \"client_credentials\"\n ],\n \"organization_id\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"encryption_key\": {\n \"cert\": \"<string>\",\n \"pub\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"fedcm_login\": {\n \"google\": {\n \"is_enabled\": false\n }\n },\n \"form_template\": \"<string>\",\n \"grant_types\": [\n \"<string>\"\n ],\n \"initiate_login_uri\": \"<string>\",\n \"is_first_party\": true,\n \"is_token_endpoint_ip_header_trusted\": false,\n \"jwt_configuration\": {\n \"alg\": \"HS256\",\n \"lifetime_in_seconds\": 36000,\n \"scopes\": {},\n \"secret_encoded\": true\n },\n \"logo_uri\": \"<string>\",\n \"mobile\": {\n \"android\": {\n \"app_package_name\": \"\",\n \"sha256_cert_fingerprints\": [\n \"<string>\"\n ]\n },\n \"ios\": {\n \"app_bundle_identifier\": \"\",\n \"team_id\": \"\"\n }\n },\n \"native_social_login\": {\n \"apple\": {\n \"enabled\": false\n },\n \"facebook\": {\n \"enabled\": false\n },\n \"google\": {\n \"enabled\": false\n }\n },\n \"oidc_backchannel_logout\": {\n \"backchannel_logout_initiators\": {\n \"selected_initiators\": []\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n },\n \"backchannel_logout_urls\": [\n \"<string>\"\n ]\n },\n \"oidc_conformant\": false,\n \"oidc_logout\": {\n \"backchannel_logout_initiators\": {\n \"selected_initiators\": []\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n },\n \"backchannel_logout_urls\": [\n \"<string>\"\n ]\n },\n \"organization_discovery_methods\": [],\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_usage\": \"deny\",\n \"par_request_expiry\": 305,\n \"refresh_token\": {\n \"expiration_type\": \"non-expiring\",\n \"rotation_type\": \"non-rotating\",\n \"idle_token_lifetime\": 2,\n \"infinite_idle_token_lifetime\": false,\n \"infinite_token_lifetime\": true,\n \"leeway\": 0,\n \"policies\": [\n {\n \"audience\": \"<string>\",\n \"scope\": [\n \"<string>\"\n ]\n }\n ],\n \"token_lifetime\": 78894000\n },\n \"require_proof_of_possession\": false,\n \"require_pushed_authorization_requests\": false,\n \"resource_server_identifier\": \"<string>\",\n \"session_transfer\": {\n \"allow_refresh_token\": false,\n \"allowed_authentication_methods\": [],\n \"can_create_session_transfer_token\": false,\n \"delegation\": {\n \"allow_delegated_access\": false,\n \"enforce_device_binding\": \"ip\"\n },\n \"enforce_cascade_revocation\": true,\n \"enforce_device_binding\": \"ip\",\n \"enforce_online_refresh_tokens\": true\n },\n \"signed_request_object\": {\n \"credentials\": [\n {\n \"credential_type\": \"public_key\",\n \"pem\": \"-----BEGIN PUBLIC KEY-----\\r\\nMIIBIjANBg...\\r\\n-----END PUBLIC KEY-----\\r\\n\",\n \"alg\": \"RS256\",\n \"expires_at\": \"2023-02-07T12:40:17.807Z\",\n \"kid\": \"<string>\",\n \"name\": \"\",\n \"parse_expiry_from_cert\": false\n }\n ],\n \"required\": false\n },\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"sso\": true,\n \"sso_disabled\": true,\n \"token_endpoint_auth_method\": \"none\",\n \"token_exchange\": {\n \"allow_any_profile_of_type\": []\n },\n \"web_origins\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"addons": {
"aws": {
"lifetime_in_seconds": 22050,
"principal": "<string>",
"role": "<string>"
},
"azure_blob": {
"accountName": "<string>",
"blobName": "<string>",
"blob_delete": true,
"blob_read": true,
"blob_write": true,
"containerName": "<string>",
"container_delete": true,
"container_list": true,
"container_read": true,
"container_write": true,
"expiration": 1,
"signedIdentifier": "<string>",
"storageAccessKey": "<string>"
},
"azure_sb": {
"entityPath": "<string>",
"expiration": 123,
"namespace": "<string>",
"sasKey": "<string>",
"sasKeyName": "<string>"
},
"box": {},
"cloudbees": {},
"concur": {},
"dropbox": {},
"echosign": {
"domain": "<string>"
},
"egnyte": {
"domain": "<string>"
},
"firebase": {
"client_email": "<string>",
"lifetime_in_seconds": 123,
"private_key": "<string>",
"private_key_id": "<string>",
"secret": "<string>"
},
"layer": {
"keyId": "<string>",
"privateKey": "<string>",
"providerId": "<string>",
"expiration": 1,
"principal": "<string>"
},
"mscrm": {
"url": "<string>"
},
"newrelic": {
"account": "<string>"
},
"oag": {},
"office365": {
"connection": "<string>",
"domain": "<string>"
},
"rms": {
"url": "<string>"
},
"salesforce": {
"entity_id": "<string>"
},
"salesforce_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"salesforce_sandbox_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"samlp": {
"audience": "<string>",
"authnContextClassRef": "<string>",
"createUpnClaim": true,
"destination": "<string>",
"digestAlgorithm": "<string>",
"issuer": "<string>",
"lifetimeInSeconds": 123,
"mapIdentities": true,
"mapUnknownClaimsAsIs": true,
"mappings": {},
"nameIdentifierFormat": "<string>",
"nameIdentifierProbes": [
"<string>"
],
"passthroughClaimsWithNoMapping": true,
"recipient": "<string>",
"signResponse": true,
"signatureAlgorithm": "<string>"
},
"sap_api": {
"clientid": "<string>",
"nameIdentifierFormat": "<string>",
"scope": "<string>",
"servicePassword": "<string>",
"tokenEndpointUrl": "<string>",
"usernameAttribute": "<string>"
},
"sentry": {
"base_url": "<string>",
"org_slug": "<string>"
},
"sharepoint": {
"external_url": [
"<string>"
],
"url": "<string>"
},
"slack": {
"team": "<string>"
},
"springcm": {
"acsurl": "<string>"
},
"sso_integration": {
"name": "<string>",
"version": "<string>"
},
"wams": {
"masterkey": "<string>"
},
"wsfed": {},
"zendesk": {
"accountName": "<string>"
},
"zoom": {
"account": "<string>"
}
},
"allowed_clients": [
"<string>"
],
"allowed_logout_urls": [
"<string>"
],
"allowed_origins": [
"<string>"
],
"async_approval_notification_channels": [],
"callbacks": [
"<string>"
],
"client_aliases": [
"<string>"
],
"client_authentication_methods": {
"private_key_jwt": {
"credentials": [
{
"id": "<string>"
}
]
},
"self_signed_tls_client_auth": {
"credentials": [
{
"id": "<string>"
}
]
},
"tls_client_auth": {
"credentials": [
{
"id": "<string>"
}
]
}
},
"client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww",
"client_metadata": {},
"client_secret": "MG_TNT2ver-SylNat-_VeMmd-4m0Waba0jr1troztBniSChEw0glxEmgEi2Kw40H",
"cross_origin_authentication": true,
"cross_origin_loc": "<string>",
"custom_login_page": "",
"custom_login_page_on": true,
"custom_login_page_preview": "",
"default_organization": {
"flows": [
"client_credentials"
],
"organization_id": "<string>"
},
"description": "",
"encryption_key": {
"cert": "<string>",
"pub": "<string>",
"subject": "<string>"
},
"express_configuration": {
"admin_login_domain": "<string>",
"connection_profile_id": "<string>",
"enable_client": true,
"enable_organization": true,
"initiate_login_uri_template": "<string>",
"okta_oin_client_id": "<string>",
"user_attribute_profile_id": "<string>",
"linked_clients": [
{
"client_id": "<string>"
}
],
"oin_submission_id": "<string>"
},
"external_client_id": "<string>",
"fedcm_login": {
"google": {
"is_enabled": false
}
},
"form_template": "",
"global": false,
"grant_types": [
"<string>"
],
"initiate_login_uri": "<string>",
"is_first_party": false,
"is_token_endpoint_ip_header_trusted": false,
"jwks_uri": "<string>",
"jwt_configuration": {
"alg": "HS256",
"lifetime_in_seconds": 36000,
"scopes": {},
"secret_encoded": true
},
"logo_uri": "<string>",
"mobile": {
"android": {
"app_package_name": "",
"sha256_cert_fingerprints": [
"<string>"
]
},
"ios": {
"app_bundle_identifier": "",
"team_id": ""
}
},
"my_organization_configuration": {
"allowed_strategies": [],
"connection_deletion_behavior": "allow",
"connection_profile_id": "<string>",
"invitation_landing_client_id": "<string>",
"user_attribute_profile_id": "<string>"
},
"name": "My application",
"native_social_login": {
"apple": {
"enabled": false
},
"facebook": {
"enabled": false
},
"google": {
"enabled": false
}
},
"oidc_conformant": false,
"oidc_logout": {
"backchannel_logout_initiators": {
"selected_initiators": []
},
"backchannel_logout_session_metadata": {
"include": true
},
"backchannel_logout_urls": [
"<string>"
]
},
"organization_discovery_methods": [],
"organization_require_behavior": "no_prompt",
"organization_usage": "deny",
"par_request_expiry": 305,
"refresh_token": {
"expiration_type": "non-expiring",
"rotation_type": "non-rotating",
"idle_token_lifetime": 2,
"infinite_idle_token_lifetime": false,
"infinite_token_lifetime": true,
"leeway": 0,
"policies": [
{
"audience": "<string>",
"scope": [
"<string>"
]
}
],
"token_lifetime": 78894000
},
"require_proof_of_possession": false,
"require_pushed_authorization_requests": false,
"resource_server_identifier": "<string>",
"session_transfer": {
"allow_refresh_token": false,
"allowed_authentication_methods": [],
"can_create_session_transfer_token": false,
"delegation": {
"allow_delegated_access": false,
"enforce_device_binding": "ip"
},
"enforce_cascade_revocation": true,
"enforce_device_binding": "ip",
"enforce_online_refresh_tokens": true
},
"signed_request_object": {
"credentials": [
{
"id": "<string>"
}
],
"required": false
},
"signing_keys": [
{
"cert": "",
"pkcs7": "",
"subject": ""
}
],
"skip_non_verifiable_callback_uri_confirmation_prompt": true,
"sso": false,
"sso_disabled": false,
"tenant": "",
"token_endpoint_auth_method": "none",
"token_exchange": {
"allow_any_profile_of_type": []
},
"token_quota": {
"client_credentials": {
"enforce": true,
"per_day": 1073741824,
"per_hour": 1073741824
}
},
"web_origins": [
"<string>"
]
}クライアントを作成
新しいクライアント(アプリケーションまたは SSO 統合)を作成します。詳細については、Create Applications API Endpoints for Single Sign-On を参照してください。
注:
- 安全なシークレットを生成できるよう、
client_secretパラメーターは指定しないことをお勧めします。 client_authentication_methodsプロパティとtoken_endpoint_auth_methodプロパティは相互に排他的です。クライアントを Private Key JWT 認証で構成するにはclient_authentication_methodsを使用してください。それ以外の場合は、token_endpoint_auth_methodを使用して、クライアントシークレット(basic または post)または認証方法なし(none)でクライアントを構成してください。client_authentication_methodsを使用してクライアントを Private Key JWT 認証で構成する場合は、完全に定義された認証情報を指定してください。 これらの認証情報は、クライアントの Private Key JWT 認証用として自動的に有効になります。client_authentication_methodsを構成するには、create:client_credentialsスコープが必要です。client_authentication_methodsを構成するには、jwt_configuration.algプロパティを RS256 に設定する必要があります。
このエンドポイントを介して作成された SSO 連携は、ログインリクエストを受け付け、ユーザープロフィール情報を共有します。
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.CreateClientRequestContent{
Name: "name",
}
client.Clients.Create(
context.TODO(),
request,
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.clients.create({
name: "name",
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.clients.create({
name: "name",
});
}
main();curl --request POST \
--url https://{tenantDomain}/api/v2/clients \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"addons": {
"aws": {
"lifetime_in_seconds": 22050,
"principal": "<string>",
"role": "<string>"
},
"azure_blob": {
"accountName": "<string>",
"blobName": "<string>",
"blob_delete": true,
"blob_read": true,
"blob_write": true,
"containerName": "<string>",
"container_delete": true,
"container_list": true,
"container_read": true,
"container_write": true,
"expiration": 1,
"signedIdentifier": "<string>",
"storageAccessKey": "<string>"
},
"azure_sb": {
"entityPath": "<string>",
"expiration": 123,
"namespace": "<string>",
"sasKey": "<string>",
"sasKeyName": "<string>"
},
"box": {},
"cloudbees": {},
"concur": {},
"dropbox": {},
"echosign": {
"domain": "<string>"
},
"egnyte": {
"domain": "<string>"
},
"firebase": {
"client_email": "<string>",
"lifetime_in_seconds": 123,
"private_key": "<string>",
"private_key_id": "<string>",
"secret": "<string>"
},
"newrelic": {
"account": "<string>"
},
"oag": {},
"office365": {
"connection": "<string>",
"domain": "<string>"
},
"salesforce": {
"entity_id": "<string>"
},
"salesforce_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"salesforce_sandbox_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"samlp": {
"audience": "<string>",
"authnContextClassRef": "<string>",
"createUpnClaim": true,
"destination": "<string>",
"digestAlgorithm": "<string>",
"issuer": "<string>",
"lifetimeInSeconds": 123,
"mapIdentities": true,
"mapUnknownClaimsAsIs": true,
"mappings": {},
"nameIdentifierFormat": "<string>",
"nameIdentifierProbes": [
"<string>"
],
"passthroughClaimsWithNoMapping": true,
"recipient": "<string>",
"signResponse": true,
"signatureAlgorithm": "<string>"
},
"sap_api": {
"clientid": "<string>",
"nameIdentifierFormat": "<string>",
"scope": "<string>",
"servicePassword": "<string>",
"tokenEndpointUrl": "<string>",
"usernameAttribute": "<string>"
},
"sentry": {
"base_url": "<string>",
"org_slug": "<string>"
},
"sharepoint": {
"external_url": [
"<string>"
],
"url": "<string>"
},
"springcm": {
"acsurl": "<string>"
},
"sso_integration": {
"name": "<string>",
"version": "<string>"
},
"wams": {
"masterkey": "<string>"
},
"wsfed": {},
"zendesk": {
"accountName": "<string>"
},
"zoom": {
"account": "<string>"
}
},
"allowed_clients": [
"<string>"
],
"allowed_logout_urls": [
"<string>"
],
"allowed_origins": [
"<string>"
],
"async_approval_notification_channels": [],
"callbacks": [
"<string>"
],
"client_aliases": [
"<string>"
],
"client_authentication_methods": {},
"client_metadata": {},
"cross_origin_authentication": false,
"cross_origin_loc": "<string>",
"custom_login_page": "<string>",
"custom_login_page_on": true,
"custom_login_page_preview": "<string>",
"default_organization": {
"flows": [
"client_credentials"
],
"organization_id": "<string>"
},
"description": "<string>",
"encryption_key": {
"cert": "<string>",
"pub": "<string>",
"subject": "<string>"
},
"fedcm_login": {
"google": {
"is_enabled": false
}
},
"form_template": "<string>",
"grant_types": [
"<string>"
],
"initiate_login_uri": "<string>",
"is_first_party": true,
"is_token_endpoint_ip_header_trusted": false,
"jwt_configuration": {
"alg": "HS256",
"lifetime_in_seconds": 36000,
"scopes": {},
"secret_encoded": true
},
"logo_uri": "<string>",
"mobile": {
"android": {
"app_package_name": "",
"sha256_cert_fingerprints": [
"<string>"
]
},
"ios": {
"app_bundle_identifier": "",
"team_id": ""
}
},
"native_social_login": {
"apple": {
"enabled": false
},
"facebook": {
"enabled": false
},
"google": {
"enabled": false
}
},
"oidc_backchannel_logout": {
"backchannel_logout_initiators": {
"selected_initiators": []
},
"backchannel_logout_session_metadata": {
"include": true
},
"backchannel_logout_urls": [
"<string>"
]
},
"oidc_conformant": false,
"oidc_logout": {
"backchannel_logout_initiators": {
"selected_initiators": []
},
"backchannel_logout_session_metadata": {
"include": true
},
"backchannel_logout_urls": [
"<string>"
]
},
"organization_discovery_methods": [],
"organization_require_behavior": "no_prompt",
"organization_usage": "deny",
"par_request_expiry": 305,
"refresh_token": {
"expiration_type": "non-expiring",
"rotation_type": "non-rotating",
"idle_token_lifetime": 2,
"infinite_idle_token_lifetime": false,
"infinite_token_lifetime": true,
"leeway": 0,
"policies": [
{
"audience": "<string>",
"scope": [
"<string>"
]
}
],
"token_lifetime": 78894000
},
"require_proof_of_possession": false,
"require_pushed_authorization_requests": false,
"resource_server_identifier": "<string>",
"session_transfer": {
"allow_refresh_token": false,
"allowed_authentication_methods": [],
"can_create_session_transfer_token": false,
"delegation": {
"allow_delegated_access": false,
"enforce_device_binding": "ip"
},
"enforce_cascade_revocation": true,
"enforce_device_binding": "ip",
"enforce_online_refresh_tokens": true
},
"signed_request_object": {
"credentials": [
{
"credential_type": "public_key",
"pem": "-----BEGIN PUBLIC KEY-----\r\nMIIBIjANBg...\r\n-----END PUBLIC KEY-----\r\n",
"alg": "RS256",
"expires_at": "2023-02-07T12:40:17.807Z",
"kid": "<string>",
"name": "",
"parse_expiry_from_cert": false
}
],
"required": false
},
"skip_non_verifiable_callback_uri_confirmation_prompt": true,
"sso": true,
"sso_disabled": true,
"token_endpoint_auth_method": "none",
"token_exchange": {
"allow_any_profile_of_type": []
},
"web_origins": [
"<string>"
]
}
'import requests
url = "https://{tenantDomain}/api/v2/clients"
payload = {
"name": "<string>",
"addons": {
"aws": {
"lifetime_in_seconds": 22050,
"principal": "<string>",
"role": "<string>"
},
"azure_blob": {
"accountName": "<string>",
"blobName": "<string>",
"blob_delete": True,
"blob_read": True,
"blob_write": True,
"containerName": "<string>",
"container_delete": True,
"container_list": True,
"container_read": True,
"container_write": True,
"expiration": 1,
"signedIdentifier": "<string>",
"storageAccessKey": "<string>"
},
"azure_sb": {
"entityPath": "<string>",
"expiration": 123,
"namespace": "<string>",
"sasKey": "<string>",
"sasKeyName": "<string>"
},
"box": {},
"cloudbees": {},
"concur": {},
"dropbox": {},
"echosign": { "domain": "<string>" },
"egnyte": { "domain": "<string>" },
"firebase": {
"client_email": "<string>",
"lifetime_in_seconds": 123,
"private_key": "<string>",
"private_key_id": "<string>",
"secret": "<string>"
},
"newrelic": { "account": "<string>" },
"oag": {},
"office365": {
"connection": "<string>",
"domain": "<string>"
},
"salesforce": { "entity_id": "<string>" },
"salesforce_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"salesforce_sandbox_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"samlp": {
"audience": "<string>",
"authnContextClassRef": "<string>",
"createUpnClaim": True,
"destination": "<string>",
"digestAlgorithm": "<string>",
"issuer": "<string>",
"lifetimeInSeconds": 123,
"mapIdentities": True,
"mapUnknownClaimsAsIs": True,
"mappings": {},
"nameIdentifierFormat": "<string>",
"nameIdentifierProbes": ["<string>"],
"passthroughClaimsWithNoMapping": True,
"recipient": "<string>",
"signResponse": True,
"signatureAlgorithm": "<string>"
},
"sap_api": {
"clientid": "<string>",
"nameIdentifierFormat": "<string>",
"scope": "<string>",
"servicePassword": "<string>",
"tokenEndpointUrl": "<string>",
"usernameAttribute": "<string>"
},
"sentry": {
"base_url": "<string>",
"org_slug": "<string>"
},
"sharepoint": {
"external_url": ["<string>"],
"url": "<string>"
},
"springcm": { "acsurl": "<string>" },
"sso_integration": {
"name": "<string>",
"version": "<string>"
},
"wams": { "masterkey": "<string>" },
"wsfed": {},
"zendesk": { "accountName": "<string>" },
"zoom": { "account": "<string>" }
},
"allowed_clients": ["<string>"],
"allowed_logout_urls": ["<string>"],
"allowed_origins": ["<string>"],
"async_approval_notification_channels": [],
"callbacks": ["<string>"],
"client_aliases": ["<string>"],
"client_authentication_methods": {},
"client_metadata": {},
"cross_origin_authentication": False,
"cross_origin_loc": "<string>",
"custom_login_page": "<string>",
"custom_login_page_on": True,
"custom_login_page_preview": "<string>",
"default_organization": {
"flows": ["client_credentials"],
"organization_id": "<string>"
},
"description": "<string>",
"encryption_key": {
"cert": "<string>",
"pub": "<string>",
"subject": "<string>"
},
"fedcm_login": { "google": { "is_enabled": False } },
"form_template": "<string>",
"grant_types": ["<string>"],
"initiate_login_uri": "<string>",
"is_first_party": True,
"is_token_endpoint_ip_header_trusted": False,
"jwt_configuration": {
"alg": "HS256",
"lifetime_in_seconds": 36000,
"scopes": {},
"secret_encoded": True
},
"logo_uri": "<string>",
"mobile": {
"android": {
"app_package_name": "",
"sha256_cert_fingerprints": ["<string>"]
},
"ios": {
"app_bundle_identifier": "",
"team_id": ""
}
},
"native_social_login": {
"apple": { "enabled": False },
"facebook": { "enabled": False },
"google": { "enabled": False }
},
"oidc_backchannel_logout": {
"backchannel_logout_initiators": { "selected_initiators": [] },
"backchannel_logout_session_metadata": { "include": True },
"backchannel_logout_urls": ["<string>"]
},
"oidc_conformant": False,
"oidc_logout": {
"backchannel_logout_initiators": { "selected_initiators": [] },
"backchannel_logout_session_metadata": { "include": True },
"backchannel_logout_urls": ["<string>"]
},
"organization_discovery_methods": [],
"organization_require_behavior": "no_prompt",
"organization_usage": "deny",
"par_request_expiry": 305,
"refresh_token": {
"expiration_type": "non-expiring",
"rotation_type": "non-rotating",
"idle_token_lifetime": 2,
"infinite_idle_token_lifetime": False,
"infinite_token_lifetime": True,
"leeway": 0,
"policies": [
{
"audience": "<string>",
"scope": ["<string>"]
}
],
"token_lifetime": 78894000
},
"require_proof_of_possession": False,
"require_pushed_authorization_requests": False,
"resource_server_identifier": "<string>",
"session_transfer": {
"allow_refresh_token": False,
"allowed_authentication_methods": [],
"can_create_session_transfer_token": False,
"delegation": {
"allow_delegated_access": False,
"enforce_device_binding": "ip"
},
"enforce_cascade_revocation": True,
"enforce_device_binding": "ip",
"enforce_online_refresh_tokens": True
},
"signed_request_object": {
"credentials": [
{
"credential_type": "public_key",
"pem": "-----BEGIN PUBLIC KEY-----
MIIBIjANBg...
-----END PUBLIC KEY-----
",
"alg": "RS256",
"expires_at": "2023-02-07T12:40:17.807Z",
"kid": "<string>",
"name": "",
"parse_expiry_from_cert": False
}
],
"required": False
},
"skip_non_verifiable_callback_uri_confirmation_prompt": True,
"sso": True,
"sso_disabled": True,
"token_endpoint_auth_method": "none",
"token_exchange": { "allow_any_profile_of_type": [] },
"web_origins": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/clients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'addons' => [
'aws' => [
'lifetime_in_seconds' => 22050,
'principal' => '<string>',
'role' => '<string>'
],
'azure_blob' => [
'accountName' => '<string>',
'blobName' => '<string>',
'blob_delete' => true,
'blob_read' => true,
'blob_write' => true,
'containerName' => '<string>',
'container_delete' => true,
'container_list' => true,
'container_read' => true,
'container_write' => true,
'expiration' => 1,
'signedIdentifier' => '<string>',
'storageAccessKey' => '<string>'
],
'azure_sb' => [
'entityPath' => '<string>',
'expiration' => 123,
'namespace' => '<string>',
'sasKey' => '<string>',
'sasKeyName' => '<string>'
],
'box' => [
],
'cloudbees' => [
],
'concur' => [
],
'dropbox' => [
],
'echosign' => [
'domain' => '<string>'
],
'egnyte' => [
'domain' => '<string>'
],
'firebase' => [
'client_email' => '<string>',
'lifetime_in_seconds' => 123,
'private_key' => '<string>',
'private_key_id' => '<string>',
'secret' => '<string>'
],
'newrelic' => [
'account' => '<string>'
],
'oag' => [
],
'office365' => [
'connection' => '<string>',
'domain' => '<string>'
],
'salesforce' => [
'entity_id' => '<string>'
],
'salesforce_api' => [
'clientid' => '<string>',
'communityName' => '<string>',
'community_url_section' => '<string>',
'principal' => '<string>'
],
'salesforce_sandbox_api' => [
'clientid' => '<string>',
'communityName' => '<string>',
'community_url_section' => '<string>',
'principal' => '<string>'
],
'samlp' => [
'audience' => '<string>',
'authnContextClassRef' => '<string>',
'createUpnClaim' => true,
'destination' => '<string>',
'digestAlgorithm' => '<string>',
'issuer' => '<string>',
'lifetimeInSeconds' => 123,
'mapIdentities' => true,
'mapUnknownClaimsAsIs' => true,
'mappings' => [
],
'nameIdentifierFormat' => '<string>',
'nameIdentifierProbes' => [
'<string>'
],
'passthroughClaimsWithNoMapping' => true,
'recipient' => '<string>',
'signResponse' => true,
'signatureAlgorithm' => '<string>'
],
'sap_api' => [
'clientid' => '<string>',
'nameIdentifierFormat' => '<string>',
'scope' => '<string>',
'servicePassword' => '<string>',
'tokenEndpointUrl' => '<string>',
'usernameAttribute' => '<string>'
],
'sentry' => [
'base_url' => '<string>',
'org_slug' => '<string>'
],
'sharepoint' => [
'external_url' => [
'<string>'
],
'url' => '<string>'
],
'springcm' => [
'acsurl' => '<string>'
],
'sso_integration' => [
'name' => '<string>',
'version' => '<string>'
],
'wams' => [
'masterkey' => '<string>'
],
'wsfed' => [
],
'zendesk' => [
'accountName' => '<string>'
],
'zoom' => [
'account' => '<string>'
]
],
'allowed_clients' => [
'<string>'
],
'allowed_logout_urls' => [
'<string>'
],
'allowed_origins' => [
'<string>'
],
'async_approval_notification_channels' => [
],
'callbacks' => [
'<string>'
],
'client_aliases' => [
'<string>'
],
'client_authentication_methods' => [
],
'client_metadata' => [
],
'cross_origin_authentication' => false,
'cross_origin_loc' => '<string>',
'custom_login_page' => '<string>',
'custom_login_page_on' => true,
'custom_login_page_preview' => '<string>',
'default_organization' => [
'flows' => [
'client_credentials'
],
'organization_id' => '<string>'
],
'description' => '<string>',
'encryption_key' => [
'cert' => '<string>',
'pub' => '<string>',
'subject' => '<string>'
],
'fedcm_login' => [
'google' => [
'is_enabled' => false
]
],
'form_template' => '<string>',
'grant_types' => [
'<string>'
],
'initiate_login_uri' => '<string>',
'is_first_party' => true,
'is_token_endpoint_ip_header_trusted' => false,
'jwt_configuration' => [
'alg' => 'HS256',
'lifetime_in_seconds' => 36000,
'scopes' => [
],
'secret_encoded' => true
],
'logo_uri' => '<string>',
'mobile' => [
'android' => [
'app_package_name' => '',
'sha256_cert_fingerprints' => [
'<string>'
]
],
'ios' => [
'app_bundle_identifier' => '',
'team_id' => ''
]
],
'native_social_login' => [
'apple' => [
'enabled' => false
],
'facebook' => [
'enabled' => false
],
'google' => [
'enabled' => false
]
],
'oidc_backchannel_logout' => [
'backchannel_logout_initiators' => [
'selected_initiators' => [
]
],
'backchannel_logout_session_metadata' => [
'include' => true
],
'backchannel_logout_urls' => [
'<string>'
]
],
'oidc_conformant' => false,
'oidc_logout' => [
'backchannel_logout_initiators' => [
'selected_initiators' => [
]
],
'backchannel_logout_session_metadata' => [
'include' => true
],
'backchannel_logout_urls' => [
'<string>'
]
],
'organization_discovery_methods' => [
],
'organization_require_behavior' => 'no_prompt',
'organization_usage' => 'deny',
'par_request_expiry' => 305,
'refresh_token' => [
'expiration_type' => 'non-expiring',
'rotation_type' => 'non-rotating',
'idle_token_lifetime' => 2,
'infinite_idle_token_lifetime' => false,
'infinite_token_lifetime' => true,
'leeway' => 0,
'policies' => [
[
'audience' => '<string>',
'scope' => [
'<string>'
]
]
],
'token_lifetime' => 78894000
],
'require_proof_of_possession' => false,
'require_pushed_authorization_requests' => false,
'resource_server_identifier' => '<string>',
'session_transfer' => [
'allow_refresh_token' => false,
'allowed_authentication_methods' => [
],
'can_create_session_transfer_token' => false,
'delegation' => [
'allow_delegated_access' => false,
'enforce_device_binding' => 'ip'
],
'enforce_cascade_revocation' => true,
'enforce_device_binding' => 'ip',
'enforce_online_refresh_tokens' => true
],
'signed_request_object' => [
'credentials' => [
[
'credential_type' => 'public_key',
'pem' => '-----BEGIN PUBLIC KEY-----
MIIBIjANBg...
-----END PUBLIC KEY-----
',
'alg' => 'RS256',
'expires_at' => '2023-02-07T12:40:17.807Z',
'kid' => '<string>',
'name' => '',
'parse_expiry_from_cert' => false
]
],
'required' => false
],
'skip_non_verifiable_callback_uri_confirmation_prompt' => true,
'sso' => true,
'sso_disabled' => true,
'token_endpoint_auth_method' => 'none',
'token_exchange' => [
'allow_any_profile_of_type' => [
]
],
'web_origins' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://{tenantDomain}/api/v2/clients")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"addons\": {\n \"aws\": {\n \"lifetime_in_seconds\": 22050,\n \"principal\": \"<string>\",\n \"role\": \"<string>\"\n },\n \"azure_blob\": {\n \"accountName\": \"<string>\",\n \"blobName\": \"<string>\",\n \"blob_delete\": true,\n \"blob_read\": true,\n \"blob_write\": true,\n \"containerName\": \"<string>\",\n \"container_delete\": true,\n \"container_list\": true,\n \"container_read\": true,\n \"container_write\": true,\n \"expiration\": 1,\n \"signedIdentifier\": \"<string>\",\n \"storageAccessKey\": \"<string>\"\n },\n \"azure_sb\": {\n \"entityPath\": \"<string>\",\n \"expiration\": 123,\n \"namespace\": \"<string>\",\n \"sasKey\": \"<string>\",\n \"sasKeyName\": \"<string>\"\n },\n \"box\": {},\n \"cloudbees\": {},\n \"concur\": {},\n \"dropbox\": {},\n \"echosign\": {\n \"domain\": \"<string>\"\n },\n \"egnyte\": {\n \"domain\": \"<string>\"\n },\n \"firebase\": {\n \"client_email\": \"<string>\",\n \"lifetime_in_seconds\": 123,\n \"private_key\": \"<string>\",\n \"private_key_id\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"newrelic\": {\n \"account\": \"<string>\"\n },\n \"oag\": {},\n \"office365\": {\n \"connection\": \"<string>\",\n \"domain\": \"<string>\"\n },\n \"salesforce\": {\n \"entity_id\": \"<string>\"\n },\n \"salesforce_api\": {\n \"clientid\": \"<string>\",\n \"communityName\": \"<string>\",\n \"community_url_section\": \"<string>\",\n \"principal\": \"<string>\"\n },\n \"salesforce_sandbox_api\": {\n \"clientid\": \"<string>\",\n \"communityName\": \"<string>\",\n \"community_url_section\": \"<string>\",\n \"principal\": \"<string>\"\n },\n \"samlp\": {\n \"audience\": \"<string>\",\n \"authnContextClassRef\": \"<string>\",\n \"createUpnClaim\": true,\n \"destination\": \"<string>\",\n \"digestAlgorithm\": \"<string>\",\n \"issuer\": \"<string>\",\n \"lifetimeInSeconds\": 123,\n \"mapIdentities\": true,\n \"mapUnknownClaimsAsIs\": true,\n \"mappings\": {},\n \"nameIdentifierFormat\": \"<string>\",\n \"nameIdentifierProbes\": [\n \"<string>\"\n ],\n \"passthroughClaimsWithNoMapping\": true,\n \"recipient\": \"<string>\",\n \"signResponse\": true,\n \"signatureAlgorithm\": \"<string>\"\n },\n \"sap_api\": {\n \"clientid\": \"<string>\",\n \"nameIdentifierFormat\": \"<string>\",\n \"scope\": \"<string>\",\n \"servicePassword\": \"<string>\",\n \"tokenEndpointUrl\": \"<string>\",\n \"usernameAttribute\": \"<string>\"\n },\n \"sentry\": {\n \"base_url\": \"<string>\",\n \"org_slug\": \"<string>\"\n },\n \"sharepoint\": {\n \"external_url\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\n },\n \"springcm\": {\n \"acsurl\": \"<string>\"\n },\n \"sso_integration\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"wams\": {\n \"masterkey\": \"<string>\"\n },\n \"wsfed\": {},\n \"zendesk\": {\n \"accountName\": \"<string>\"\n },\n \"zoom\": {\n \"account\": \"<string>\"\n }\n },\n \"allowed_clients\": [\n \"<string>\"\n ],\n \"allowed_logout_urls\": [\n \"<string>\"\n ],\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"async_approval_notification_channels\": [],\n \"callbacks\": [\n \"<string>\"\n ],\n \"client_aliases\": [\n \"<string>\"\n ],\n \"client_authentication_methods\": {},\n \"client_metadata\": {},\n \"cross_origin_authentication\": false,\n \"cross_origin_loc\": \"<string>\",\n \"custom_login_page\": \"<string>\",\n \"custom_login_page_on\": true,\n \"custom_login_page_preview\": \"<string>\",\n \"default_organization\": {\n \"flows\": [\n \"client_credentials\"\n ],\n \"organization_id\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"encryption_key\": {\n \"cert\": \"<string>\",\n \"pub\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"fedcm_login\": {\n \"google\": {\n \"is_enabled\": false\n }\n },\n \"form_template\": \"<string>\",\n \"grant_types\": [\n \"<string>\"\n ],\n \"initiate_login_uri\": \"<string>\",\n \"is_first_party\": true,\n \"is_token_endpoint_ip_header_trusted\": false,\n \"jwt_configuration\": {\n \"alg\": \"HS256\",\n \"lifetime_in_seconds\": 36000,\n \"scopes\": {},\n \"secret_encoded\": true\n },\n \"logo_uri\": \"<string>\",\n \"mobile\": {\n \"android\": {\n \"app_package_name\": \"\",\n \"sha256_cert_fingerprints\": [\n \"<string>\"\n ]\n },\n \"ios\": {\n \"app_bundle_identifier\": \"\",\n \"team_id\": \"\"\n }\n },\n \"native_social_login\": {\n \"apple\": {\n \"enabled\": false\n },\n \"facebook\": {\n \"enabled\": false\n },\n \"google\": {\n \"enabled\": false\n }\n },\n \"oidc_backchannel_logout\": {\n \"backchannel_logout_initiators\": {\n \"selected_initiators\": []\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n },\n \"backchannel_logout_urls\": [\n \"<string>\"\n ]\n },\n \"oidc_conformant\": false,\n \"oidc_logout\": {\n \"backchannel_logout_initiators\": {\n \"selected_initiators\": []\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n },\n \"backchannel_logout_urls\": [\n \"<string>\"\n ]\n },\n \"organization_discovery_methods\": [],\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_usage\": \"deny\",\n \"par_request_expiry\": 305,\n \"refresh_token\": {\n \"expiration_type\": \"non-expiring\",\n \"rotation_type\": \"non-rotating\",\n \"idle_token_lifetime\": 2,\n \"infinite_idle_token_lifetime\": false,\n \"infinite_token_lifetime\": true,\n \"leeway\": 0,\n \"policies\": [\n {\n \"audience\": \"<string>\",\n \"scope\": [\n \"<string>\"\n ]\n }\n ],\n \"token_lifetime\": 78894000\n },\n \"require_proof_of_possession\": false,\n \"require_pushed_authorization_requests\": false,\n \"resource_server_identifier\": \"<string>\",\n \"session_transfer\": {\n \"allow_refresh_token\": false,\n \"allowed_authentication_methods\": [],\n \"can_create_session_transfer_token\": false,\n \"delegation\": {\n \"allow_delegated_access\": false,\n \"enforce_device_binding\": \"ip\"\n },\n \"enforce_cascade_revocation\": true,\n \"enforce_device_binding\": \"ip\",\n \"enforce_online_refresh_tokens\": true\n },\n \"signed_request_object\": {\n \"credentials\": [\n {\n \"credential_type\": \"public_key\",\n \"pem\": \"-----BEGIN PUBLIC KEY-----\\r\\nMIIBIjANBg...\\r\\n-----END PUBLIC KEY-----\\r\\n\",\n \"alg\": \"RS256\",\n \"expires_at\": \"2023-02-07T12:40:17.807Z\",\n \"kid\": \"<string>\",\n \"name\": \"\",\n \"parse_expiry_from_cert\": false\n }\n ],\n \"required\": false\n },\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"sso\": true,\n \"sso_disabled\": true,\n \"token_endpoint_auth_method\": \"none\",\n \"token_exchange\": {\n \"allow_any_profile_of_type\": []\n },\n \"web_origins\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"addons\": {\n \"aws\": {\n \"lifetime_in_seconds\": 22050,\n \"principal\": \"<string>\",\n \"role\": \"<string>\"\n },\n \"azure_blob\": {\n \"accountName\": \"<string>\",\n \"blobName\": \"<string>\",\n \"blob_delete\": true,\n \"blob_read\": true,\n \"blob_write\": true,\n \"containerName\": \"<string>\",\n \"container_delete\": true,\n \"container_list\": true,\n \"container_read\": true,\n \"container_write\": true,\n \"expiration\": 1,\n \"signedIdentifier\": \"<string>\",\n \"storageAccessKey\": \"<string>\"\n },\n \"azure_sb\": {\n \"entityPath\": \"<string>\",\n \"expiration\": 123,\n \"namespace\": \"<string>\",\n \"sasKey\": \"<string>\",\n \"sasKeyName\": \"<string>\"\n },\n \"box\": {},\n \"cloudbees\": {},\n \"concur\": {},\n \"dropbox\": {},\n \"echosign\": {\n \"domain\": \"<string>\"\n },\n \"egnyte\": {\n \"domain\": \"<string>\"\n },\n \"firebase\": {\n \"client_email\": \"<string>\",\n \"lifetime_in_seconds\": 123,\n \"private_key\": \"<string>\",\n \"private_key_id\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"newrelic\": {\n \"account\": \"<string>\"\n },\n \"oag\": {},\n \"office365\": {\n \"connection\": \"<string>\",\n \"domain\": \"<string>\"\n },\n \"salesforce\": {\n \"entity_id\": \"<string>\"\n },\n \"salesforce_api\": {\n \"clientid\": \"<string>\",\n \"communityName\": \"<string>\",\n \"community_url_section\": \"<string>\",\n \"principal\": \"<string>\"\n },\n \"salesforce_sandbox_api\": {\n \"clientid\": \"<string>\",\n \"communityName\": \"<string>\",\n \"community_url_section\": \"<string>\",\n \"principal\": \"<string>\"\n },\n \"samlp\": {\n \"audience\": \"<string>\",\n \"authnContextClassRef\": \"<string>\",\n \"createUpnClaim\": true,\n \"destination\": \"<string>\",\n \"digestAlgorithm\": \"<string>\",\n \"issuer\": \"<string>\",\n \"lifetimeInSeconds\": 123,\n \"mapIdentities\": true,\n \"mapUnknownClaimsAsIs\": true,\n \"mappings\": {},\n \"nameIdentifierFormat\": \"<string>\",\n \"nameIdentifierProbes\": [\n \"<string>\"\n ],\n \"passthroughClaimsWithNoMapping\": true,\n \"recipient\": \"<string>\",\n \"signResponse\": true,\n \"signatureAlgorithm\": \"<string>\"\n },\n \"sap_api\": {\n \"clientid\": \"<string>\",\n \"nameIdentifierFormat\": \"<string>\",\n \"scope\": \"<string>\",\n \"servicePassword\": \"<string>\",\n \"tokenEndpointUrl\": \"<string>\",\n \"usernameAttribute\": \"<string>\"\n },\n \"sentry\": {\n \"base_url\": \"<string>\",\n \"org_slug\": \"<string>\"\n },\n \"sharepoint\": {\n \"external_url\": [\n \"<string>\"\n ],\n \"url\": \"<string>\"\n },\n \"springcm\": {\n \"acsurl\": \"<string>\"\n },\n \"sso_integration\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"wams\": {\n \"masterkey\": \"<string>\"\n },\n \"wsfed\": {},\n \"zendesk\": {\n \"accountName\": \"<string>\"\n },\n \"zoom\": {\n \"account\": \"<string>\"\n }\n },\n \"allowed_clients\": [\n \"<string>\"\n ],\n \"allowed_logout_urls\": [\n \"<string>\"\n ],\n \"allowed_origins\": [\n \"<string>\"\n ],\n \"async_approval_notification_channels\": [],\n \"callbacks\": [\n \"<string>\"\n ],\n \"client_aliases\": [\n \"<string>\"\n ],\n \"client_authentication_methods\": {},\n \"client_metadata\": {},\n \"cross_origin_authentication\": false,\n \"cross_origin_loc\": \"<string>\",\n \"custom_login_page\": \"<string>\",\n \"custom_login_page_on\": true,\n \"custom_login_page_preview\": \"<string>\",\n \"default_organization\": {\n \"flows\": [\n \"client_credentials\"\n ],\n \"organization_id\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"encryption_key\": {\n \"cert\": \"<string>\",\n \"pub\": \"<string>\",\n \"subject\": \"<string>\"\n },\n \"fedcm_login\": {\n \"google\": {\n \"is_enabled\": false\n }\n },\n \"form_template\": \"<string>\",\n \"grant_types\": [\n \"<string>\"\n ],\n \"initiate_login_uri\": \"<string>\",\n \"is_first_party\": true,\n \"is_token_endpoint_ip_header_trusted\": false,\n \"jwt_configuration\": {\n \"alg\": \"HS256\",\n \"lifetime_in_seconds\": 36000,\n \"scopes\": {},\n \"secret_encoded\": true\n },\n \"logo_uri\": \"<string>\",\n \"mobile\": {\n \"android\": {\n \"app_package_name\": \"\",\n \"sha256_cert_fingerprints\": [\n \"<string>\"\n ]\n },\n \"ios\": {\n \"app_bundle_identifier\": \"\",\n \"team_id\": \"\"\n }\n },\n \"native_social_login\": {\n \"apple\": {\n \"enabled\": false\n },\n \"facebook\": {\n \"enabled\": false\n },\n \"google\": {\n \"enabled\": false\n }\n },\n \"oidc_backchannel_logout\": {\n \"backchannel_logout_initiators\": {\n \"selected_initiators\": []\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n },\n \"backchannel_logout_urls\": [\n \"<string>\"\n ]\n },\n \"oidc_conformant\": false,\n \"oidc_logout\": {\n \"backchannel_logout_initiators\": {\n \"selected_initiators\": []\n },\n \"backchannel_logout_session_metadata\": {\n \"include\": true\n },\n \"backchannel_logout_urls\": [\n \"<string>\"\n ]\n },\n \"organization_discovery_methods\": [],\n \"organization_require_behavior\": \"no_prompt\",\n \"organization_usage\": \"deny\",\n \"par_request_expiry\": 305,\n \"refresh_token\": {\n \"expiration_type\": \"non-expiring\",\n \"rotation_type\": \"non-rotating\",\n \"idle_token_lifetime\": 2,\n \"infinite_idle_token_lifetime\": false,\n \"infinite_token_lifetime\": true,\n \"leeway\": 0,\n \"policies\": [\n {\n \"audience\": \"<string>\",\n \"scope\": [\n \"<string>\"\n ]\n }\n ],\n \"token_lifetime\": 78894000\n },\n \"require_proof_of_possession\": false,\n \"require_pushed_authorization_requests\": false,\n \"resource_server_identifier\": \"<string>\",\n \"session_transfer\": {\n \"allow_refresh_token\": false,\n \"allowed_authentication_methods\": [],\n \"can_create_session_transfer_token\": false,\n \"delegation\": {\n \"allow_delegated_access\": false,\n \"enforce_device_binding\": \"ip\"\n },\n \"enforce_cascade_revocation\": true,\n \"enforce_device_binding\": \"ip\",\n \"enforce_online_refresh_tokens\": true\n },\n \"signed_request_object\": {\n \"credentials\": [\n {\n \"credential_type\": \"public_key\",\n \"pem\": \"-----BEGIN PUBLIC KEY-----\\r\\nMIIBIjANBg...\\r\\n-----END PUBLIC KEY-----\\r\\n\",\n \"alg\": \"RS256\",\n \"expires_at\": \"2023-02-07T12:40:17.807Z\",\n \"kid\": \"<string>\",\n \"name\": \"\",\n \"parse_expiry_from_cert\": false\n }\n ],\n \"required\": false\n },\n \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n \"sso\": true,\n \"sso_disabled\": true,\n \"token_endpoint_auth_method\": \"none\",\n \"token_exchange\": {\n \"allow_any_profile_of_type\": []\n },\n \"web_origins\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"addons": {
"aws": {
"lifetime_in_seconds": 22050,
"principal": "<string>",
"role": "<string>"
},
"azure_blob": {
"accountName": "<string>",
"blobName": "<string>",
"blob_delete": true,
"blob_read": true,
"blob_write": true,
"containerName": "<string>",
"container_delete": true,
"container_list": true,
"container_read": true,
"container_write": true,
"expiration": 1,
"signedIdentifier": "<string>",
"storageAccessKey": "<string>"
},
"azure_sb": {
"entityPath": "<string>",
"expiration": 123,
"namespace": "<string>",
"sasKey": "<string>",
"sasKeyName": "<string>"
},
"box": {},
"cloudbees": {},
"concur": {},
"dropbox": {},
"echosign": {
"domain": "<string>"
},
"egnyte": {
"domain": "<string>"
},
"firebase": {
"client_email": "<string>",
"lifetime_in_seconds": 123,
"private_key": "<string>",
"private_key_id": "<string>",
"secret": "<string>"
},
"layer": {
"keyId": "<string>",
"privateKey": "<string>",
"providerId": "<string>",
"expiration": 1,
"principal": "<string>"
},
"mscrm": {
"url": "<string>"
},
"newrelic": {
"account": "<string>"
},
"oag": {},
"office365": {
"connection": "<string>",
"domain": "<string>"
},
"rms": {
"url": "<string>"
},
"salesforce": {
"entity_id": "<string>"
},
"salesforce_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"salesforce_sandbox_api": {
"clientid": "<string>",
"communityName": "<string>",
"community_url_section": "<string>",
"principal": "<string>"
},
"samlp": {
"audience": "<string>",
"authnContextClassRef": "<string>",
"createUpnClaim": true,
"destination": "<string>",
"digestAlgorithm": "<string>",
"issuer": "<string>",
"lifetimeInSeconds": 123,
"mapIdentities": true,
"mapUnknownClaimsAsIs": true,
"mappings": {},
"nameIdentifierFormat": "<string>",
"nameIdentifierProbes": [
"<string>"
],
"passthroughClaimsWithNoMapping": true,
"recipient": "<string>",
"signResponse": true,
"signatureAlgorithm": "<string>"
},
"sap_api": {
"clientid": "<string>",
"nameIdentifierFormat": "<string>",
"scope": "<string>",
"servicePassword": "<string>",
"tokenEndpointUrl": "<string>",
"usernameAttribute": "<string>"
},
"sentry": {
"base_url": "<string>",
"org_slug": "<string>"
},
"sharepoint": {
"external_url": [
"<string>"
],
"url": "<string>"
},
"slack": {
"team": "<string>"
},
"springcm": {
"acsurl": "<string>"
},
"sso_integration": {
"name": "<string>",
"version": "<string>"
},
"wams": {
"masterkey": "<string>"
},
"wsfed": {},
"zendesk": {
"accountName": "<string>"
},
"zoom": {
"account": "<string>"
}
},
"allowed_clients": [
"<string>"
],
"allowed_logout_urls": [
"<string>"
],
"allowed_origins": [
"<string>"
],
"async_approval_notification_channels": [],
"callbacks": [
"<string>"
],
"client_aliases": [
"<string>"
],
"client_authentication_methods": {
"private_key_jwt": {
"credentials": [
{
"id": "<string>"
}
]
},
"self_signed_tls_client_auth": {
"credentials": [
{
"id": "<string>"
}
]
},
"tls_client_auth": {
"credentials": [
{
"id": "<string>"
}
]
}
},
"client_id": "AaiyAPdpYdesoKnqjj8HJqRn4T5titww",
"client_metadata": {},
"client_secret": "MG_TNT2ver-SylNat-_VeMmd-4m0Waba0jr1troztBniSChEw0glxEmgEi2Kw40H",
"cross_origin_authentication": true,
"cross_origin_loc": "<string>",
"custom_login_page": "",
"custom_login_page_on": true,
"custom_login_page_preview": "",
"default_organization": {
"flows": [
"client_credentials"
],
"organization_id": "<string>"
},
"description": "",
"encryption_key": {
"cert": "<string>",
"pub": "<string>",
"subject": "<string>"
},
"express_configuration": {
"admin_login_domain": "<string>",
"connection_profile_id": "<string>",
"enable_client": true,
"enable_organization": true,
"initiate_login_uri_template": "<string>",
"okta_oin_client_id": "<string>",
"user_attribute_profile_id": "<string>",
"linked_clients": [
{
"client_id": "<string>"
}
],
"oin_submission_id": "<string>"
},
"external_client_id": "<string>",
"fedcm_login": {
"google": {
"is_enabled": false
}
},
"form_template": "",
"global": false,
"grant_types": [
"<string>"
],
"initiate_login_uri": "<string>",
"is_first_party": false,
"is_token_endpoint_ip_header_trusted": false,
"jwks_uri": "<string>",
"jwt_configuration": {
"alg": "HS256",
"lifetime_in_seconds": 36000,
"scopes": {},
"secret_encoded": true
},
"logo_uri": "<string>",
"mobile": {
"android": {
"app_package_name": "",
"sha256_cert_fingerprints": [
"<string>"
]
},
"ios": {
"app_bundle_identifier": "",
"team_id": ""
}
},
"my_organization_configuration": {
"allowed_strategies": [],
"connection_deletion_behavior": "allow",
"connection_profile_id": "<string>",
"invitation_landing_client_id": "<string>",
"user_attribute_profile_id": "<string>"
},
"name": "My application",
"native_social_login": {
"apple": {
"enabled": false
},
"facebook": {
"enabled": false
},
"google": {
"enabled": false
}
},
"oidc_conformant": false,
"oidc_logout": {
"backchannel_logout_initiators": {
"selected_initiators": []
},
"backchannel_logout_session_metadata": {
"include": true
},
"backchannel_logout_urls": [
"<string>"
]
},
"organization_discovery_methods": [],
"organization_require_behavior": "no_prompt",
"organization_usage": "deny",
"par_request_expiry": 305,
"refresh_token": {
"expiration_type": "non-expiring",
"rotation_type": "non-rotating",
"idle_token_lifetime": 2,
"infinite_idle_token_lifetime": false,
"infinite_token_lifetime": true,
"leeway": 0,
"policies": [
{
"audience": "<string>",
"scope": [
"<string>"
]
}
],
"token_lifetime": 78894000
},
"require_proof_of_possession": false,
"require_pushed_authorization_requests": false,
"resource_server_identifier": "<string>",
"session_transfer": {
"allow_refresh_token": false,
"allowed_authentication_methods": [],
"can_create_session_transfer_token": false,
"delegation": {
"allow_delegated_access": false,
"enforce_device_binding": "ip"
},
"enforce_cascade_revocation": true,
"enforce_device_binding": "ip",
"enforce_online_refresh_tokens": true
},
"signed_request_object": {
"credentials": [
{
"id": "<string>"
}
],
"required": false
},
"signing_keys": [
{
"cert": "",
"pkcs7": "",
"subject": ""
}
],
"skip_non_verifiable_callback_uri_confirmation_prompt": true,
"sso": false,
"sso_disabled": false,
"tenant": "",
"token_endpoint_auth_method": "none",
"token_exchange": {
"allow_any_profile_of_type": []
},
"token_quota": {
"client_credentials": {
"enforce": true,
"per_day": 1073741824,
"per_hour": 1073741824
}
},
"web_origins": [
"<string>"
]
}承認
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ボディ
このクライアントの名前(最小長: 1 文字、< または > は使用できません)。
^[^<>]+$このクライアントで有効になっているアドオンと、それぞれに関連付けられた設定。
Show child attributes
Show child attributes
デリゲーションリクエストを実行できる、許可対象のクライアントおよび API id のリスト。空の場合は、すべてのクライアントが許可されます。
1Auth0 からログアウトした後のリダイレクト先として有効な URL のカンマ区切りリスト。サブドメインにはワイルドカードを使用できます。
JavaScript から Auth0 API へのリクエストを許可する URL のカンマ区切りリスト(通常は CORS で使用)。デフォルトでは、すべてのコールバックURLが許可されます。このフィールドでは、必要に応じて他のオリジンを入力できます。サブドメインレベルではワイルドカードも使用できます(例: https://*.contoso.com)。これらの URL の検証時には、クエリ文字列とハッシュ情報は考慮されません。
このクライアントが表すアプリケーションの種類
native, spa, regular_web, non_interactive, resource_server, express_configuration, rms, box, cloudbees, concur, dropbox, mscrm, echosign, egnyte, newrelic, office365, salesforce, sentry, sharepoint, slack, springcm, zendesk, zoom, sso_integration, oag 承認が必要な場合にユーザーに通知するための通知チャネルの配列。有効な値は guardian-push、email です。
1guardian-push, email 認証後に Auth0 がクライアントへのコールバックとして使用できる、許可リストに登録された URL のカンマ区切りリスト。
SAML プロトコル用のオーディエンス/レルムのリスト。wsfed アドオンで使用されます。
1クライアント認証方法を定義します。
Show child attributes
Show child attributes
クライアントに関連付けられたメタデータ。文字列値を持つオブジェクト形式です(最大255文字)。メタデータのプロパティは最大10件まで指定できます。フィールド名(最大255文字)は英数字で、使用できる特殊文字は次のとおりです: :,-+=_*?"/\()<>@\t[Tab] [Space]
このクライアントの準拠レベルを定義します。これにより、機能が制限される場合があります。
none, fapi1_adv_pkj_par, fapi1_adv_mtls_par, fapi2_sp_pkj_mtls, fapi2_sp_mtls_mtls, null このクライアントがクロスオリジン認証リクエストを実行できるか(true)、またはそのようなリクエストが許可されないか(false)を示します。
Auth0 のホスト型ログインページではなく独自ドメインで認証を実行する場合に、クロスオリジン認証フローのクロスオリジン検証を行うサイト上の場所の URL です。
カスタムログインページのコンテンツ(HTML、CSS、JS)。
1カスタムログインページを使用する場合は true、それ以外は false。デフォルトは true です
カスタムログインページのコンテンツ(HTML、CSS、JS)。(プレビューで使用)
1デフォルトの組織 ID とフローを定義します。
Show child attributes
Show child attributes
このクライアントの自由記述の説明(最大長: 140 文字)。
140このクライアントの WsFed レスポンスで使用される暗号化。
Show child attributes
Show child attributes
OIN Express Configuration 機能で使用するアプリケーション固有の設定。
Show child attributes
Show child attributes
New Universal Login の FedCM ログイン設定を構成します
Show child attributes
Show child attributes
WS-Federation で使用する HTML フォームテンプレート。
1このアプリケーションでサポートされるグラントタイプの一覧です。authorization_code、implicit、refresh_token、client_credentials、password、http://auth0.com/oauth/grant-type/password-realm、http://auth0.com/oauth/grant-type/mfa-oob、http://auth0.com/oauth/grant-type/mfa-otp、http://auth0.com/oauth/grant-type/mfa-recovery-code、urn:openid:params:grant-type:ciba、urn:ietf:params:oauth:grant-type:device_code、urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token を含めることができます。
1ログイン開始 URI。HTTPS である必要があります
このクライアントがファーストパーティクライアントかどうか
true の場合、トークンエンドポイントでのブルートフォース対策のため、auth0-forwarded-for ヘッダーで指定された IP をエンドユーザーの IP として信頼します。
クライアントのJWTに関連する設定。
Show child attributes
Show child attributes
このクライアントに表示するロゴの URL。推奨サイズは 150x150 ピクセルです。
ネイティブモバイルアプリ向けの追加設定。
Show child attributes
Show child attributes
クライアントの My Organization Configuration に関連する設定。
Show child attributes
Show child attributes
ネイティブソーシャル設定を構成
Show child attributes
Show child attributes
OIDC バックチャネルログアウトの設定(非推奨。代わりに oidc_logout を使用してください)
Show child attributes
Show child attributes
このクライアントが厳密な OIDC 仕様に準拠しているか(true)、またはレガシー機能を使用しているか(false)を示します。
OIDC バックチャネルログアウトの設定
Show child attributes
Show child attributes
pre_login_prompt 中の組織検出で利用可能な方法を定義します。ユーザーは email、organization_name、またはその両方を使って組織を検出できます。
1pre_login_prompt 中に組織を特定する方法。email では、ユーザーがメールアドレスを入力してドメイン照合を行うことで組織を見つけられます。一方、organization_name では、ユーザーが組織名を直接入力する必要があります。これらの方法は組み合わせて使用できます。
email, organization_name client.organization_usage: 'require' の場合に、認証トランザクション中の処理方法を定義します。no_prompt(デフォルト)、pre_login_prompt、post_login_prompt のいずれかを指定できます。post_login_prompt には oidc_conformant: true が必要です。
no_prompt, pre_login_prompt, post_login_prompt 組織に関して、認証トランザクション中にどのように処理を進めるかを定義します。deny(デフォルト)、allow、require のいずれかを指定できます。
deny, allow, require プッシュ型認可リクエスト URI が有効な期間を秒単位で指定します
10 <= x <= 600認証エラー時、またはメールアドレス確認フローで、Auth0 がユーザーをアプリケーションのコールバックURLにリダイレクトするかどうかを制御します。open_redirect_protection はリダイレクトの代わりにエラーページを表示し、メールテンプレートからコールバック ドメインを非表示にします。allow_always は標準のリダイレクト動作を有効にします。サードパーティ クライアントでは、デフォルトで open_redirect_protection が使用されます。これは is_first_party が false で、かつ third_party_security_mode が strict の場合にのみ適用されます。詳細は、Redirect protection を参照してください。
allow_always, open_redirect_protection リフレッシュトークンの設定
Show child attributes
Show child attributes
このクライアントでは、所有証明の使用を必須にします
このクライアントでは、プッシュ型認可リクエストの使用を必須にします
このクライアントにリンクされているリソースサーバーの識別子。
1 - 600ネイティブから Web への SSO の設定
Show child attributes
Show child attributes
JWT-Secured Authorization Requests(JAR)の設定。
Show child attributes
Show child attributes
リダイレクト URI が検証不能なコールバック URI(たとえば myapp:// のようなカスタム URI スキーマや localhost)を使用している場合に、ログインフロー中に確認プロンプトを表示するかどうかを制御します。
true に設定すると、確認プロンプトは表示されません。悪意のあるアプリからのなりすましに対する保護を強化するため、この設定は false にすることを推奨します。
詳細は https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation を参照してください。
SSO クライアントにのみ適用され、シングルサインオンを Auth0 が処理するか(true)、IDプロバイダーが処理するか(false)を決定します。
シングルサインオンを無効にする場合は true、それ以外は false(デフォルト: false)
サードパーティクライアントのセキュリティモード。strictは強化されたセキュリティ制御を適用します。これには、OAuth 2.1への準拠、明示的なAPI認可、サポート対象機能を厳選したセットが含まれます。permissiveは従来の動作を維持し、過去にサードパーティクライアントの使用実績があるテナントでのみ利用できます。作成時に設定し、後から変更することはできません。
strict, permissive トークンエンドポイントに対して要求する認証方法を定義します。none(クライアントシークレットを持たないパブリッククライアント)、client_secret_post(クライアントがHTTP POSTパラメーターを使用)、またはclient_secret_basic(クライアントがHTTP Basicを使用)を指定できます。
none, client_secret_post, client_secret_basic トークン交換の設定。
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Cross-Origin Authentication、Device Flow、および web message response mode で使用するために許可されたオリジンのカンマ区切りリスト。
レスポンス
クライアントが正常に作成されました。
このクライアントで有効になっているアドオンと、それぞれに関連付けられた設定。
Show child attributes
Show child attributes
デリゲーションリクエストを実行できる、許可対象のクライアントおよび API id の一覧です。空の場合は、すべてのクライアントが許可されます。
Auth0 からログアウトした後の有効なリダイレクト先 URL を、カンマ区切りで指定した一覧です。サブドメインにはワイルドカードを使用できます。
JavaScript から Auth0 API へのリクエストを許可する URL のカンマ区切りリストです(通常は CORS で使用されます)。デフォルトでは、すべてのコールバック URL が許可されます。必要に応じて、このフィールドでほかのオリジンを入力できます。サブドメインレベルではワイルドカードも使用できます(例: https://*.contoso.com)。これらの URL の検証時には、クエリ文字列およびハッシュ情報は考慮されません。
このクライアントが表すアプリケーションの種類
native, spa, regular_web, non_interactive, resource_server, express_configuration, rms, box, cloudbees, concur, dropbox, mscrm, echosign, egnyte, newrelic, office365, salesforce, sentry, sharepoint, slack, springcm, zendesk, zoom, sso_integration, oag 承認が必要な場合にユーザーに通知するための通知チャネルの配列。有効な値は guardian-push、email です。
1guardian-push, email 認証後に Auth0 がクライアントへのコールバックとして使用できる、許可された URL のカンマ区切りリスト。
SAML プロトコル用のオーディエンス/レルムの一覧。wsfed アドオンで使用されます。
クライアント認証方法を定義します。
Show child attributes
Show child attributes
このクライアントの ID。
クライアントに関連付けられたメタデータ。文字列値を持つオブジェクト形式です(最大255文字)。メタデータのプロパティは最大10件まで指定できます。フィールド名(最大255文字)は英数字で、使用できる特殊文字は次のとおりです: :,-+=_*?"/\()<>@\t[Tab] [Space]
クライアントシークレット(公開してはならない値)。
このクライアントの準拠レベルを定義します。これにより、機能が制限される場合があります。
none, fapi1_adv_pkj_par, fapi1_adv_mtls_par, fapi2_sp_pkj_mtls, fapi2_sp_mtls_mtls, null このクライアントをクロスオリジン認証リクエストに使用できるか(true)、またはそのようなリクエストの実行が許可されていないか(false)を示します。
Auth0 のホスト型ログインページではなく独自ドメインで認証を実行する場合に、クロスオリジン認証フローでクロスオリジン検証を実施する、サイト上の場所の URL です。
カスタムログインページのコンテンツ(HTML、CSS、JS)です。
カスタムログインページを使用するか(true)、または提供されるデフォルトのログインページを使用するか(false)を示します。
カスタムログインページのコンテンツ(HTML、CSS、JS)です。(プレビューで使用)
デフォルトの組織 ID とフローを定義します。
Show child attributes
Show child attributes
このクライアントの自由記述の説明(最大長: 140 文字)。
このクライアントの WsFed レスポンスで使用される暗号化。
Show child attributes
Show child attributes
OIN Express Configuration 機能で使用するアプリケーション固有の設定。
Show child attributes
Show child attributes
認可フロー中に使用する代替クライアント識別子です。CIMD ベースのクライアント識別子のみをサポートします。
外部メタデータ クライアントを作成した主体を示します。値 admin は、クライアントが Management API 経由で登録されたことを示します。値 client は、クライアントが動的に登録されたことを示します。このフィールドは、external_metadata_type が設定されている場合にのみ存在します。
admin, client クライアントの登録に使用された外部メタデータの種類を示します。このフィールドは通常のクライアントでは省略されます。値 cimd は、Client ID Metadata Document 経由で登録されたクライアントを示します。値 dcr は、動的クライアント登録によって登録されたクライアントを示します。
cimd, dcr New Universal Login の FedCM ログイン設定を構成します
Show child attributes
Show child attributes
WS-Federation で使用する HTML フォームテンプレートです。
これがレガシーなテナント設定を表すグローバルな「All Applications」クライアントであるか(true)、通常のクライアントであるか(false)を示します。
このアプリケーションでサポートされるグラントタイプの一覧です。authorization_code、implicit、refresh_token、client_credentials、password、http://auth0.com/oauth/grant-type/password-realm、http://auth0.com/oauth/grant-type/mfa-oob、http://auth0.com/oauth/grant-type/mfa-otp、http://auth0.com/oauth/grant-type/mfa-recovery-code、urn:openid:params:grant-type:ciba、urn:ietf:params:oauth:grant-type:device_code、urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token を含めることができます。
ログイン開始 URI。https である必要があります
このクライアントがファーストパーティクライアントであるか(true)、そうでないか(false)。
true の場合、トークンエンドポイントでの総当たり攻撃対策のために、auth0-forwarded-for ヘッダーで指定された IP をエンドユーザーの IP として信頼します。
private_key_jwt 認証で使用される公開鍵を含む JSON Web Key Set(JWKS)の URL です。private_key_jwt 認証を使用する CIMD クライアントにのみ存在します。
クライアントのJWTに関連する設定。
Show child attributes
Show child attributes
このクライアントに表示するロゴの URL。推奨サイズは 150x150 ピクセルです。
ネイティブモバイルアプリ向けの追加設定。
Show child attributes
Show child attributes
クライアントの My Organization Configuration に関連する設定。
Show child attributes
Show child attributes
このクライアントの名前(最小長: 1 文字、< または > は使用できません)。
ネイティブソーシャル設定を構成
Show child attributes
Show child attributes
このクライアントが厳密な OIDC 仕様に準拠しているか(true)、またはレガシー機能を使用しているか(false)を示します。
OIDC バックチャネルログアウトの設定
Show child attributes
Show child attributes
pre_login_prompt 中の組織検出で利用可能な方法を定義します。ユーザーは email、organization_name、またはその両方で組織を検出できます。
1pre_login_prompt 中に組織を特定する方法。email では、ユーザーがメールアドレスを入力してドメイン照合を行うことで組織を見つけられます。一方、organization_name では、ユーザーが組織名を直接入力する必要があります。これらの方法は組み合わせて使用できます。
email, organization_name client.organization_usage: 'require' の場合に、認証トランザクション中の処理方法を定義します。no_prompt(デフォルト)、pre_login_prompt、post_login_prompt のいずれかを指定できます。post_login_prompt には oidc_conformant: true が必要です。
no_prompt, pre_login_prompt, post_login_prompt 組織に関して、認証トランザクション中にどのように処理を進めるかを定義します。deny(デフォルト)、allow、require のいずれかを指定できます。
deny, allow, require プッシュ型認可リクエスト URI が有効な期間を秒単位で指定します
10 <= x <= 600認証エラー時、またはメールアドレス確認フローで、Auth0 がユーザーをアプリケーションのコールバックURLにリダイレクトするかどうかを制御します。open_redirect_protection はリダイレクトの代わりにエラーページを表示し、メールテンプレートからコールバック ドメインを非表示にします。allow_always は標準のリダイレクト動作を有効にします。サードパーティ クライアントでは、デフォルトで open_redirect_protection が使用されます。これは is_first_party が false で、かつ third_party_security_mode が strict の場合にのみ適用されます。詳細は、Redirect protection を参照してください。
allow_always, open_redirect_protection リフレッシュトークンの設定
Show child attributes
Show child attributes
このクライアントで所有証明の使用を必須にします
このクライアントでプッシュ型認可リクエストの使用を必須にします
このクライアントに関連付けられているリソースサーバーの識別子です。
ネイティブから Web への SSO の設定
Show child attributes
Show child attributes
JWT-Secured Authorization Requests(JAR)の設定。
Show child attributes
Show child attributes
このクライアントに関連付けられた署名証明書。
Show child attributes
Show child attributes
リダイレクト URI で検証不能なコールバック URI(たとえば myapp:// のようなカスタム URI スキームや localhost)を使用している場合に、ログインフロー中に確認プロンプトを表示するかどうかを制御します。
true に設定すると、確認プロンプトは表示されません。悪意のあるアプリからの保護を強化するため、false に設定することを推奨します。
詳細については、https://auth0.com/docs/secure/security-guidance/measures-against-app-impersonation を参照してください。
SSO クライアントにのみ適用され、シングルサインオンを Auth0 が処理するか(true)、IDプロバイダーが処理するか(false)を決定します。
シングルサインオンが無効か(true)、有効か(true)を示します。デフォルトは true です。
このクライアントが属するテナントの名前。
サードパーティクライアントのセキュリティモード。strictは強化されたセキュリティ制御を適用します。これには、OAuth 2.1への準拠、明示的なAPI認可、サポート対象機能を厳選したセットが含まれます。permissiveは従来の動作を維持し、過去にサードパーティクライアントの使用実績があるテナントでのみ利用できます。作成時に設定し、後から変更することはできません。
strict, permissive トークンエンドポイントに対して要求する認証方法を定義します。none(クライアントシークレットを持たないパブリッククライアント)、client_secret_post(クライアントがHTTP POSTパラメーターを使用)、またはclient_secret_basic(クライアントがHTTP Basicを使用)を指定できます。
none, client_secret_post, client_secret_basic トークン交換の設定。
Show child attributes
Show child attributes
Show child attributes
Show child attributes
クロスオリジン認証、デバイスフロー、および web message response mode で使用する、許可されたオリジンのカンマ区切りリスト。