35.2.3 Creating a Client
A Client is an application making protected resource requests on behalf of the resource owner and with the resource owner's authorization.
curl command to create a client are:
-
Name: Name of the client
-
idDomain: Name of the identityDomain under which the client is created
-
secret: Client secret incase of a CONFIDENTIAL_CLIENT
-
clientType: Type of client. Supported values - CONFIDENTIAL_CLIENT, PUBLIC_CLIENT, MOBILE_CLIENT
-
redirectURIs: List of redirectURIs configured for the client
-
attributes: List of custom attributes configured for the client
-
grantTypes: List of allowed grant types. Allowed values - PASSWORD, CLIENT_CREDENTIALS, JWT_BEARER, REFRESH_TOKEN, AUTHORIZATION_CODE
-
Scopes: List of scopes that the client can request access to.
-
scopeName - Name of the scope. This is referred to by the <ResourceServerName>.<ScopeName>
-
-
defaultScope - This is the default scope that the access token is generated with, If no scope is specified during the Runtime Flows.
Endpoint for CRUD operations:
http:<AdminServerHost:Port>/oam/services/rest/ssa/api/v1/oauthpolicyadmin/clientNote:
Use Content-Type:application/json in the REST API HTTP request.