Changes for page 2. Authenticating with your OIDC client and fetch collab user info
Last modified by messines on 2021/06/08 17:32
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -65,6 +65,7 @@ 65 65 (% class="wikigeneratedid" id="HRequest-1" %) 66 66 Now that your app has the **authorization** **code** for a user, it can fetch the user access token 67 67 68 +(% class="wikigeneratedid" %) 68 68 ==== Request ==== 69 69 70 70 /POST: [[https:/iam.ebrains.eu/auth/realms/hbp/protocol/openid-connect/token>>url:https:/iam.ebrains.eu/auth/realms/hbp/protocol/openid-connect/token]] ... ... @@ -121,7 +121,7 @@ 121 121 122 122 ==== Response ==== 123 123 124 -As response your app receives a JSON with all the information aboutthe logged user125 +As response your app receives a JSON with all the information on the logged user 125 125 126 126 (% class="box" %) 127 127 ((( ... ... @@ -128,6 +128,8 @@ 128 128 { 129 129 "sub": "fa2db206-3...0ebaba98e1", 130 130 "unit": [ 132 + "/collab-devs", 133 + "/collab-team", 131 131 "/all/institutions/switzerland/epfl", 132 132 "/all/projects/hbp/consortium/SGA2/SP05", 133 133 "/all/projects/hbp/consortium/SGA3/WP6/T6_11" ... ... @@ -144,7 +144,7 @@ 144 144 ], 145 145 "group": [ 146 146 "**group**-collaboratory-developers", 147 - "**unit**-all-projects-hbp-consortium-sga2-sp05- **administrator**"150 + "**unit**-all-projects-hbp-consortium-sga2-sp05-administrator" 148 148 ] 149 149 }, 150 150 "mitreid-sub": "30...62" ... ... @@ -151,10 +151,12 @@ 151 151 } 152 152 ))) 153 153 154 -The u nitfield above lists CollaboratoryUnitswhichthe user isamemberof,with the unitslashes instead of the colons you see in the Collaboratory UI.157 +The group field above lists Collaboratory Groups in the form "group-//groupname//" and Collaboratory Units in the form "unit-//unitname//" with the unitname using dashes instead of the colons you see in the Collaboratory UI. 155 155 156 - jupyterhubandxwikiareOIDC clientswith more advancedpermissionmanagement.159 +The team field above lists Collaboratory Teams in the form "collab-//collabname//-//role//" where //role //is one of admin, editor, or viewer according to the user's role in collab //collabname//. 157 157 158 - Theteam field above lists Collaboratory Teams which theuser is a memberof, in the form "collab-//collabname//-//role//"where //role //is one of admin,editor, or vieweraccording to theuser'srole incollab //collabname//.161 +jupyterhub and xwiki are OIDC clients. 159 159 160 -The group field above lists Collaboratory Groups which the user is a member of, in the form "group-//groupname//". It also lists Collaboratory Units which the user is an admin of, in the form "unit-//unitname//-administrator" with //unitname //using dashes instead of the colons you see in the Collaboratory UI. 163 +The unit field above lists [useless noise?]. 164 + 165 +