Skip to main content

Register a new oauth2 client

POST 

/oauth2server/client

Register a new oauth2 client. Note that client_secret will be generated by the server, any specified value will be ignored.

Example:

curl -i -X POST -u user:password \n -H 'Content-Type: application/json' \n -d '{
"client_id": "some_client",
"authorized_grant_types": [
"authorization_code"
],
"redirect_uri": [
"http://localhost:8081"
],
"autoapprove": [
"false"
],
"access_token_validity" : "3600",
"refresh_token_validity": "36000"
}'\n http://localhost:8080/oauth2server/client

Request​

Responses​

The created oauth2 client