1spring:
2 datasource:
3 url: jdbc:mysql://localhost:3306/spring_social?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false
4 username: root
5 password: callicoder
6
7 jpa:
8 show-sql: true
9 hibernate:
10 ddl-auto: update
11 naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
12 properties:
13 hibernate:
14 dialect: org.hibernate.dialect.MySQL5InnoDBDialect
15 security:
16 oauth2:
17 client:
18 registration:
19 google:
20 clientId: 5014057553-8gm9um6vnli3cle5rgigcdjpdrid14m9.apps.googleusercontent.com
21 clientSecret: tWZKVLxaD_ARWsriiiUFYoIk
22 redirectUri: "{baseUrl}/oauth2/callback/{registrationId}"
23 scope:
24 - email
25 - profile
26 facebook:
27 clientId: 121189305185277
28 clientSecret: 42ffe5aa7379e8326387e0fe16f34132
29 redirectUri: "{baseUrl}/oauth2/callback/{registrationId}" # Note that facebook now mandates the use of https redirect URIs, so make sure your app supports https in production
30 scope:
31 - email
32 - public_profile
33 github:
34 clientId: d3e47fc2ddd966fa4352
35 clientSecret: 3bc0f6b8332f93076354c2a5bada2f5a05aea60d
36 redirectUri: "{baseUrl}/oauth2/callback/{registrationId}"
37 scope:
38 - user:email
39 - read:user
40 provider:
41 facebook:
42 authorizationUri: https://www.facebook.com/v3.0/dialog/oauth
43 tokenUri: https://graph.facebook.com/v3.0/oauth/access_token
44 userInfoUri: https://graph.facebook.com/v3.0/me?fields=id,first_name,middle_name,last_name,name,email,verified,is_verified,picture.width(250).height(250)
45app:
46 auth:
47 tokenSecret: 926D96C90030DD58429D2751AC1BDBBC
48 tokenExpirationMsec: 864000000
49 oauth2:
50 # After successfully authenticating with the OAuth2 Provider,
51 # we'll be generating an auth token for the user and sending the token to the
52 # redirectUri mentioned by the frontend client in the /oauth2/authorize request.
53 # We're not using cookies because they won't work well in mobile clients.
54 authorizedRedirectUris:
55 - http://localhost:3000/oauth2/redirect
56 - myandroidapp://oauth2/redirect
57 - myiosapp://oauth2/redirect
58