Add renew secret token REST API
What does this MR do and why?
Add REST api endpoint for renew application secret #422420 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
-
Create Application via REST API
curl --request POST \ --url http://gdk.test:3000/api/v4/applications \ --header 'Authorization: Bearer <TOKEN>' \ --data '{ "name": "MyApplication", "redirect_uri": "https://redirect.uri", "scopes": "api" }'
-
Renew application secret via api. You would see new secret return in the response
curl --request GET \ --url http://gdk.test:3000/api/v4/applications/1/renew \ --header 'Authorization: Bearer <TOKEN>' \ --data '{ "name": "MyApplication", "redirect_uri": "https://redirect.uri", "scopes": "api" }'