Register the client using registration token acquired for given domain
post
/oauth2/rest/dcr/client
Request
Supported Media Types
- application/json
- application/x-www-form-urlencoded
Query Parameters
-
identityDomain: string
This is an alternate to 'X-OAUTH-IDENTITY-DOMAIN-NAME' header parameter. If this is provided 'X-OAUTH-IDENTITY-DOMAIN-NAME' is not required. 'X-OAUTH-IDENTITY-DOMAIN-NAME' will take precedance over 'identityDomain' query parameter.
Header Parameters
-
Autherization(required): string
Initial access token
-
X-OAUTH-IDENTITY-DOMAIN-NAME(required): string
Domain name with which you want to register the client, It MUST be same as domain for which token is acquired
Response
Supported Media Types
- application/json
200 Response
Initial access token
Root Schema : clientinfo
Type:
Show Source
object
-
client_get_uri(required):
string
uri at which you can fetch the client details
-
client_id(required):
string
a7befc996f674ac38720a2b64ff388e4
-
client_name(required):
string
oma4ac38720a2b64ff388e4
-
client_secret(required):
string
oudA8WlqpENkEz
-
client_secret_expires_at:
integer
time in sec
-
redirect_uris(required):
array redirect_uris
Nested Schema : redirect_uris
Type:
Show Source
array
-
Array of:
string
android-app://com.example.app/example.com/my/path/to/information, http://localhost:8080/my/path/to/information
403 Response
If either OAuth Service is not enabled or DCR is not enabled for current domain
404 Response
Error
500 Response
One of scenario in which you will get this error is when you use the same initian access token multiple times