Skip to main content
Version: 8.2411.x.x RR

Examples

Based on the RFC, DCR doesn't require any login or role. A newly created Client will be owned by an anonymous user. All examples represent possible JSON responses.

Clients

Create client

Minimal client request

curl -XPOST -k -H "Content-Type: application/json" \
https://localhost:9943/nevismeta/rest/v3/modules/oauthv2/setups/00000000000000000000000000000000/clients \
-d '{
"client_name": "MINIMAL",
"custom_metadata": "Nevis",
"custom_metadata#de": "Nevis in German"
}'

Response

client_secret exists in client

{
"client_name": "MINIMAL",
"token_endpoint_auth_method": "client_secret_basic",
"grant_types": [ "authorization_code" ],
"response_types": [ "code" ],
"client_id": "d95a9747931f27a1e7fab515426195d6",
"client_secret": "880e4c9c6e1f74b3cfdeecea978b532b",
"client_id_issued_at": 1659101222120,
"client_secret_expires_at": "0",
"custom_metadata#de" : "Nevis in German",
"custom_metadata" : "Nevis"
}

client_secret does not exist in client

{
"client_name": "MINIMAL",
"token_endpoint_auth_method": "none",
"grant_types": "authorization_code",
"response_types": "code",
"client_id": "b842e1ea1d45afcad88e45a5ea01a31c",
"client_id_issued_at": 1659100573340
}