Register a new oauth2 client
POST/oauth2server/client
Register a new oauth2 client.
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"
],
"client_secret": "secret",
"redirect_uri": [
"http://localhost:8081"
],
"autoapprove": [
"false"
],
"access_token_validity" : "3600",
"refresh_token_validity": "36000"
}'\n http://localhost:8080/oauth2server/client
Request
Responses
- 201
The created oauth2 client