Changes for page Community App Developer Guide
Last modified by bougault on 2022/03/02 11:58
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -162,3 +162,28 @@ 162 162 163 163 * your client **secret** ("secret" attribute) which is needed by your application to **authenticate to the IAM server** when making backend calls 164 164 * your client **registration access token** ("registrationAccessToken") which is the token you will need to authenticate when **modifying your client in the future** 165 + 166 +=== Modifying your client === 167 + 168 +Updating a client is done with a PUT request: 169 + 170 +{{code language="bash"}} 171 +# Set your registration token and client id 172 +clb_reg_token=... 173 + 174 +# Update the client 175 +curl -X PUT https://iam.humanbrainproject.eu/auth/realms/hbp/clients-registrations/default/my-awesome-client \ 176 + -H "Authorization: Bearer ${clb_reg_token}" \ 177 + -H 'Content-Type: application/json' \ 178 + -d '{ 179 + "clientId": "my-awesome-client", 180 + "redirectUris": [ 181 + "/relative/redirect/path", 182 + "/these/can/use/wildcards/*", 183 + "/a/new/redirect/uri" 184 + ] 185 + }' | 186 + 187 +# Prettify the JSON response 188 +json_pp; 189 +{{/code}}