瀏覽代碼

GITBOOK-40: Update Cognito' user name attribute param name

Roman Zabaluev 2 年之前
父節點
當前提交
e435f350c9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      configuration/authentication/oauth2.md

+ 2 - 1
configuration/authentication/oauth2.md

@@ -25,7 +25,7 @@ auth:
         authorization-grant-type: authorization_code
         issuer-uri: https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_xxx
         jwk-set-uri: https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_xxx/.well-known/jwks.json
-        user-name-attribute: username
+        user-name-attribute: cognito:username
         custom-params:
           type: cognito
           logoutUrl: https://<XXX>>.eu-central-1.amazoncognito.com/logout
@@ -111,4 +111,5 @@ auth:
         token-uri: http(s)://HOSTNAME/login/oauth/access_token
         user-info-uri: http(s)://HOSTNAME/api/v3/user
 ```
+
 Replace `HOSTNAME` by your self-hosted platform FQDN.