Changes for page Use your OIDC client as service account
Last modified by hbpadmin on 2021/06/15 17:59
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -26,29 +26,4 @@ 26 26 } 27 27 {{/code}} 28 28 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}} 29 +