Browse Source

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

Fixes gh-4456
pull/4487/head
Joe Grandja 9 years ago
parent
commit
e8c6a1acc8
  1. 2
      samples/boot/oauth2login/src/main/resources/META-INF/oauth2-clients-defaults.yml
  2. 2
      samples/boot/oauth2login/src/main/resources/application.yml

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

@ -20,6 +20,7 @@ security: @@ -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: @@ -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:

2
samples/boot/oauth2login/src/main/resources/application.yml

@ -21,11 +21,9 @@ security: @@ -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

Loading…
Cancel
Save