Update an existing oauth2 client
PUT/oauth2server/client/:client_id
Update an existing oauth2 client. Note that client_secret can not be changed through this rest path, any specified value will be ignored.
Example:
curl -i -X PUT -u user:password \n -H 'Content-Type: application/json' \n -d '{
"client_id": "some_client",
"authorized_grant_types": [
"authorization_code",
"client_credentials"
],
"redirect_uri": [
"http://localhost:8081"
],
"autoapprove": [
"false"
],
"access_token_validity" : "3600",
"refresh_token_validity": "36000"
}'\n http://localhost:8080/oauth2server/client/some_client
Request
Responses
- 204
The updated oauth2 client