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

From version 8.1
edited by messines
on 2020/07/15 18:33
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
... ... @@ -6,7 +6,7 @@
6 6  
7 7  The client is confidential with a secret, you obtain it throught the registering oidc client tutorial above.
8 8  
9 -[[image:Screenshot 2020-07-15 at 17.47.12.png||height="453" width="664"]]
9 +[[image:Screenshot 2020-07-15 at 17.47.12.png]]
10 10  
11 11  
12 12  The whole authentication flow presented here is based on the official OAuth2 rfc describe in the section 4.1
... ... @@ -13,8 +13,6 @@
13 13  
14 14  [[https:~~/~~/tools.ietf.org/html/rfc6749#section-4.1>>https://tools.ietf.org/html/rfc6749#section-4.1]]
15 15  
16 -[[image:Screenshot 2020-07-15 at 18.32.14.png||height="410" width="474"]]
17 -
18 18  == Authentication flow ==
19 19  
20 20  === Authorization Code Grant ===
... ... @@ -98,49 +98,3 @@
98 98  )))
99 99  
100 100  You get a response containing the access token and others
101 -
102 -== Access user info ==
103 -
104 -Now that your application got the access token of your user, it's really easy to fetch user info
105 -
106 -(% class="box infomessage" %)
107 -(((
108 -/GET https:/iam.ebrains.eu/auth/realms/hbp/protocol/openid-connect/userinfo
109 -)))
110 -
111 -and just provide the access token as **Authentication** header
112 -
113 -[[image:Screenshot 2020-07-15 at 18.28.28.png||height="161" width="566"]]
114 -
115 -
116 -As response you will have a json with all the information on the logged user, for my user
117 -
118 -(% class="box" %)
119 -(((
120 -{
121 - "sub": "fa2db206-3eb4-403c-894a-810ebaba98e1",
122 - "unit": [
123 - "/collab-devs",
124 - "/collab-team",
125 - "/all/institutions/switzerland/epfl",
126 - "/all/projects/hbp/consortium/SGA2/SP05",
127 - "/all/projects/hbp/consortium/SGA3/WP6/T6_11"
128 - ],
129 - "roles": {
130 - "jupyterhub": [
131 - "feature:authenticate"
132 - ],
133 - "xwiki": [
134 - "feature:authenticate"
135 - ],
136 - "team": [
137 - "collab-collaboratory-community-apps-editor"
138 - ],
139 - "group": [
140 - "group-collaboratory-developers",
141 - "unit-all-projects-hbp-consortium-sga2-sp05-administrator"
142 - ]
143 - },
144 - "mitreid-sub": "305862"
145 -}
146 -)))
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
Screenshot 2020-07-15 at 18.32.14.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.messines
Size
... ... @@ -1,1 +1,0 @@
1 -161.8 KB
Content