소스 검색

Move user-name-attribute-name to clients-defaults.yml

Fixes gh-4456
Joe Grandja 8 년 전
부모
커밋
e8c6a1acc8

+ 2 - 0
samples/boot/oauth2login/src/main/resources/META-INF/oauth2-clients-defaults.yml

@@ -20,6 +20,7 @@ security:
         authorization-uri: "https://github.com/login/oauth/authorize"
         token-uri: "https://github.com/login/oauth/access_token"
         user-info-uri: "https://api.github.com/user"
+        user-name-attribute-name: "name"
         client-name: GitHub
         client-alias: github
       facebook:
@@ -30,6 +31,7 @@ security:
         authorization-uri: "https://www.facebook.com/v2.8/dialog/oauth"
         token-uri: "https://graph.facebook.com/v2.8/oauth/access_token"
         user-info-uri: "https://graph.facebook.com/me"
+        user-name-attribute-name: "name"
         client-name: Facebook
         client-alias: facebook
       okta:

+ 0 - 2
samples/boot/oauth2login/src/main/resources/application.yml

@@ -21,11 +21,9 @@ security:
       github:
         client-id: your-app-client-id
         client-secret: your-app-client-secret
-        user-name-attribute-name: "name"
       facebook:
         client-id: your-app-client-id
         client-secret: your-app-client-secret
-        user-name-attribute-name: "name"
       okta:
         client-id: your-app-client-id
         client-secret: your-app-client-secret