Add a new OAuth Client

post

/oam/services/rest/ssa/api/v1/oauthpolicyadmin/client

Request

Supported Media Types
Body ()
OAuth Client that needs to be created
Root Schema : Client
Type: object
Show Source
Nested Schema : accessTokenCustomClaims
Type: array
Show Source
  • Represents a list of claims that must be included in the Access Token in addition to other claims that are being requested via scope or other configurations
Nested Schema : attributes
Type: array
Show Source
Nested Schema : grantTypes
Type: array
Show Source
  • Allowed Values: [ "PASSWORD", "REFRESH_TOKEN", "JWT_BEARER", "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE" ]
Nested Schema : idTokenCustomClaims
Type: array
Show Source
  • Represents a list of claims that must be included in the Identity Token in addition to other claims that are being requested via scope or other configurations
Nested Schema : redirectURIs
Type: array
Show Source
Nested Schema : scopes
Type: array
Show Source
Nested Schema : userInfoCustomClaims
Type: array
Show Source
  • Represents a list of claims that must be included in the User Info response in addition to other claims that are being requested via scope or other configurations
Nested Schema : TokenAttributeSettings
Type: object
Custom attributes that can be added to the Access Token
Show Source
Nested Schema : RedirectURI
Type: object
Show Source
Nested Schema : ScopeSettings
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Sucessfully created entity - OAuthClient, detail
Body ()
Root Schema : Client
Type: object
Show Source
Nested Schema : accessTokenCustomClaims
Type: array
Show Source
  • Represents a list of claims that must be included in the Access Token in addition to other claims that are being requested via scope or other configurations
Nested Schema : attributes
Type: array
Show Source
Nested Schema : grantTypes
Type: array
Show Source
  • Allowed Values: [ "PASSWORD", "REFRESH_TOKEN", "JWT_BEARER", "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE" ]
Nested Schema : idTokenCustomClaims
Type: array
Show Source
  • Represents a list of claims that must be included in the Identity Token in addition to other claims that are being requested via scope or other configurations
Nested Schema : redirectURIs
Type: array
Show Source
Nested Schema : scopes
Type: array
Show Source
Nested Schema : userInfoCustomClaims
Type: array
Show Source
  • Represents a list of claims that must be included in the User Info response in addition to other claims that are being requested via scope or other configurations
Nested Schema : TokenAttributeSettings
Type: object
Custom attributes that can be added to the Access Token
Show Source
Nested Schema : RedirectURI
Type: object
Show Source
Nested Schema : ScopeSettings
Type: object
Show Source

422 Response

Failed to create OAuth entity "Client" - name "NameofClient"
Back to Top

Examples

This example demonstrates a sample request against the server for creating a new Client.

cURL Example

curl -i -H 'Content-Type: application/json' -H 'Authorization:Basic d2VibG9naWM6V2VsY29tZTE='
--request POST http:<AdminServerHost:Port>/oam/services/rest/ssa/api/v1/oauthpolicyadmin/client -d 
{"attributes":[{"attrName":"customeAttr1","attrValue":"CustomValue","attrType":"static"}],"secret":"welcome1","id":"TestClient","scopes":["ResServer1.scope1"],"clientType":"CONFIDENTIAL_CLIENT","idDomain":"TestDomain1",
"description":"Client Description","name":"TestClient","grantTypes":["PASSWORD","CLIENT_CREDENTIALS","JWT_BEARER","REFRESH_TOKEN","AUTHORIZATION_CODE"],"defaultScope":"ResServer1.scope1","redirectURIs":[{"url":"http://localhost:8080/Sample.jsp","isHttps":true}]}

Example of Request Body

The following example shows the contents of the response body for creating a new Client in JSON format.

HTTP/1.1 200 OK
Date: Thu, 27 Jul 2017 17:30:16 GMT
Content-Length: 27
Content-Type: text/plain
X-ORACLE-DMS-ECID: 78d30c19-07b6-4ac2-a39b-f1cbd8182ebb-0000012d
X-ORACLE-DMS-RID: 0
Set-Cookie: JSESSIONID=4J2FGVVUN8MXI5vdemvJw3HFPHyraFXIDVRoRUZwc_7Uia_SOhG5!-1875566563; path=/; HttpOnly

Sucessfully created entity - OAuthClient, detail...
Back to Top