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

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

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 modify your client
34 +* save your registration access token for further modifications of 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 'Enter your username' && read clb_dev_username &&
45 -echo 'Enter your password' && read -s clb_dev_pwd &&
44 +echo '\nEnter your username' && read clb_dev_username &&
45 +echo '\nEnter 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,7 +49,10 @@
49 49   -u developer: \
50 50   -d 'grant_type=password' \
51 51   -d "username=${clb_dev_username}" \
52 - -d "password=${clb_dev_pwd}"; \
52 + -d "password=${clb_dev_pwd}" |
53 +
54 +# Prettify the JSON response
55 +json_pp;
53 53  
54 54  # Erase the credentials from local variables
55 55  clb_dev_pwd='';clb_dev_username=''
... ... @@ -71,3 +71,7 @@
71 71  {{/code}}
72 72  
73 73  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