Browse Source

GITBOOK-49: Update Okta OAuth config; add missing roles-field

Roman Zabaluev 2 năm trước cách đây
mục cha
commit
3cb7e6d288
1 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 6 4
      configuration/authentication/oauth2.md

+ 6 - 4
configuration/authentication/oauth2.md

@@ -26,6 +26,7 @@ auth:
         user-name-attribute: <zzz>
         custom-params:
           type: <provider_type> # fill this if you're gonna use RBAC AND the type is one of the supported RBAC providers
+          roles-field: groups # required for RBAC, a field name in OAuth token which will contain user's roles/groups
 ```
 
 ### Cognito
@@ -147,14 +148,15 @@ auth:
       okta:
         clientId: xxx
         clientSecret: yyy
-        scope: [ 'openid', 'profile', 'email' ] # default for okta
+        scope: [ 'openid', 'profile', 'email', 'groups' ] # default for okta + groups for rbac
         client-name: Okta
         provider: okta
         redirect-uri: http://localhost:8080/login/oauth2/code/okta
         authorization-grant-type: authorization_code
-        issuer-uri: https://xxx
+        issuer-uri: https://<okta_domain>.okta.com
         jwk-set-uri: https://yyy/.well-known/jwks.json
-        user-name-attribute: sub # default for okta
+        user-name-attribute: sub # default for okta, "email" also available
         custom-params:
-          type: <provider_type> # fill this if you're gonna use RBAC AND the type is one of the supported RBAC providers
+          type: oauth
+          roles-field: groups # required for RBAC
 ```