Last modified by bougault on 2022/03/02 11:58

From version 2.2
edited by allan
on 2019/09/19 11:05
Change comment: There is no comment for this version
To version 2.1
edited by allan
on 2019/09/18 15:51
Change comment: Fetching your developer access token

Summary

Details

Page properties
Content
... ... @@ -31,7 +31,7 @@
31 31  
32 32  * get an access token from the `developer` client
33 33  * use the token to call the create endpoint
34 -* save your registration access token for further modifications of your client
34 +* save your registration access token for further modify your client
35 35  
36 36  === Fetching your developer access token ===
37 37  
... ... @@ -41,8 +41,8 @@
41 41  
42 42  {{code language="bash"}}
43 43  # Gather username and password from user
44 -echo '\nEnter your username' && read clb_dev_username &&
45 -echo '\nEnter your password' && read -s clb_dev_pwd &&
44 +echo 'Enter your username' && read clb_dev_username &&
45 +echo 'Enter your password' && read -s clb_dev_pwd &&
46 46  
47 47  # Fetch the token
48 48  curl -X POST https://iam.humanbrainproject.eu/auth/realms/hbp/protocol/openid-connect/token \
... ... @@ -49,10 +49,7 @@
49 49   -u developer: \
50 50   -d 'grant_type=password' \
51 51   -d "username=${clb_dev_username}" \
52 - -d "password=${clb_dev_pwd}" |
53 -
54 -# Prettify the JSON response
55 -json_pp;
52 + -d "password=${clb_dev_pwd}"; \
56 56  
57 57  # Erase the credentials from local variables
58 58  clb_dev_pwd='';clb_dev_username=''
... ... @@ -74,7 +74,3 @@
74 74  {{/code}}
75 75  
76 76  Copy the "access_token" value, it is the one that will be needed for the next step.
77 -
78 -=== Creating the client ===
79 -
80 -Clients can be created by sending a JSON representation t