From e8c6a1acc875375ee72e2136d6cdec25948342ee Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Mon, 24 Jul 2017 16:07:05 -0400 Subject: [PATCH] Move user-name-attribute-name to clients-defaults.yml Fixes gh-4456 --- .../src/main/resources/META-INF/oauth2-clients-defaults.yml | 2 ++ samples/boot/oauth2login/src/main/resources/application.yml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/boot/oauth2login/src/main/resources/META-INF/oauth2-clients-defaults.yml b/samples/boot/oauth2login/src/main/resources/META-INF/oauth2-clients-defaults.yml index 6a1ab49bbe..649cda1272 100644 --- a/samples/boot/oauth2login/src/main/resources/META-INF/oauth2-clients-defaults.yml +++ b/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: diff --git a/samples/boot/oauth2login/src/main/resources/application.yml b/samples/boot/oauth2login/src/main/resources/application.yml index 3f0e19d85f..7b1420317f 100644 --- a/samples/boot/oauth2login/src/main/resources/application.yml +++ b/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