Last modified by messines on 2021/06/08 17:32

From version 5.1
edited by messines
on 2020/07/15 18:31
Change comment: There is no comment for this version
To version 3.2
edited by messines
on 2020/07/15 18:24
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -96,49 +96,3 @@
96 96  )))
97 97  
98 98  You get a response containing the access token and others
99 -
100 -== Access user info ==
101 -
102 -Now that your application got the access token of your user, it's really easy to fetch user info
103 -
104 -(% class="box infomessage" %)
105 -(((
106 -/GET https:/iam.ebrains.eu/auth/realms/hbp/protocol/openid-connect/userinfo
107 -)))
108 -
109 -and just provide the access token as **Authentication** header
110 -
111 -[[image:Screenshot 2020-07-15 at 18.28.28.png||height="161" width="566"]]
112 -
113 -
114 -As response you will have a json with all the information on the logged user, for my user
115 -
116 -(% class="box" %)
117 -(((
118 -{
119 - "sub": "fa2db206-3eb4-403c-894a-810ebaba98e1",
120 - "unit": [
121 - "/collab-devs",
122 - "/collab-team",
123 - "/all/institutions/switzerland/epfl",
124 - "/all/projects/hbp/consortium/SGA2/SP05",
125 - "/all/projects/hbp/consortium/SGA3/WP6/T6_11"
126 - ],
127 - "roles": {
128 - "jupyterhub": [
129 - "feature:authenticate"
130 - ],
131 - "xwiki": [
132 - "feature:authenticate"
133 - ],
134 - "team": [
135 - "collab-collaboratory-community-apps-editor"
136 - ],
137 - "group": [
138 - "group-collaboratory-developers",
139 - "unit-all-projects-hbp-consortium-sga2-sp05-administrator"
140 - ]
141 - },
142 - "mitreid-sub": "305862"
143 -}
144 -)))
Screenshot 2020-07-15 at 18.28.28.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.messines
Size
... ... @@ -1,1 +1,0 @@
1 -58.4 KB
Content