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
-
... ... @@ -42,12 +42,14 @@ 42 42 The **scope** parameter can include a combination of several values. Each user will be asked to consent to sharing that scope with your app upon first access. 43 43 44 44 * **openid: **This scope is required because we use the OIDC protocol. It will give your app access to the user's basic information such as username, email and full name. 45 +* **profile** (optional): More information on user if provided by the user 46 +* **email **(optional): The verified email of the user, should be add in addition of openid and/or profile to get the email. 45 45 * **group **(optional)**: **If you request this scope, the future access token generated will authorize your app to identify which units and groups the user belongs to. 46 46 * **team **(optional)**: **This scope is like the group scope lets your app identify the permissions of the user, but by identifying what collabs the user has access to and with what roles. 47 47 * **clb.wiki.read **(optional): access to GET Collab API 48 48 * **clb.wiki.write** (optional): access to DELETE/PUT/POST Collab API 49 -* **clb.drive :read**(optional): access to GET50 -* ** clb.drive:write**accesstoDELETE/PUT/POST DriveAPI51 +* **collab.drive **(optional): access to GET/POST/PUT/DELETE drive API 52 +* **offline_access **(optional)**: **provide refresh token 51 51 52 52 {{info}} 53 53 The group and team scopes are a simple way for your app to grant permissions to its services and resources when you want to grant access to a very few units, groups, or collab teams. For more complex permission management, contact support. ... ... @@ -67,7 +67,7 @@ 67 67 === Access Token Request === 68 68 69 69 (% class="wikigeneratedid" id="HRequest-1" %) 70 -Now that your app has the **authorization** **code** for a user, it can fetch the user access token72 +Now that your app has the **authorization** **code** for a user, it can fetch the user ID Token and Access Token 71 71 72 72 ==== Request ==== 73 73 ... ... @@ -105,7 +105,7 @@ 105 105 } 106 106 ))) 107 107 108 -Your app gets a response containing the **access token** and other information. 110 +Your app gets a response containing the **access token**, the **refresh token,** the **id token **and other information. The ID Token should be use by developer on their backend to read user informations such as username, first name, last name etc. The ID Token should be use internally, into your app only, the app which triggered the authentication. The access token will be use to reach APIs, the access token can be see as a card to access an ATM. ID Token is for Authentication, Access token is for Authorization. Refresh token is to re-ask a valid access token after expiration. 109 109 110 110 == Access user info == 111 111