Attention: The EBRAINS drive will be unavailable for most of the weekend starting the 25th October. Although the Lab is availble while the Drive is down, files that are stored in the Drive will not be loaded and you will be unable to save documents directly on the Lab.


Last modified by hbpadmin on 2021/06/15 17:59

From version 2.1
edited by messines
on 2020/12/04 11:25
Change comment: There is no comment for this version
To version 3.1
edited by messines
on 2020/12/04 11:46
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -26,4 +26,29 @@
26 26  }
27 27  {{/code}}
28 28  
29 -
29 +
30 +== Generate an Access token using client credentials ==
31 +
32 +==== **Endpoint :** ====
33 +
34 +https://iam.ebrains.eu/auth/realms/hbp/protocol/openid-connect/token
35 +
36 +==== **Params :** ====
37 +
38 +(% class="box" %)
39 +(((
40 +**Request Body**
41 +grant_type: "client_credentials"
42 +client_id: "clientId"
43 +client_secret: "clientSecret"
44 +scope: "The scopes you need and which are available in your client"
45 +)))
46 +
47 +{{code language="bash"}}
48 +
49 +# Send the get access token request
50 +curl -X POST https://iam.ebrains.eu/auth/realms/hbp/protocol/openid-connect/token \
51 + -H 'Content-Type: application/x-www-form-urlencoded' \
52 + -d "grant_type=client_credentials&client_id=myclient&client_secret=mysecret&scope=email%20profile%20team%20group%20clb.wiki.read%20clb.wiki.write"
53 +
54 +{{/code}}