mcitcentral / mcitmocks

0 stars 0 forks source link

[Backend] Setup Spring Security for oAuth #6

Open wilsonplau opened 3 years ago

joshmhanson commented 3 years ago

This needs to be added to application-dev.properties:

spring.security.oauth2.client.registration.google.client-id=google-client-id
spring.security.oauth2.client.registration.google.client-secret=google-client-secret

with google-client-id and google-client-secret replaced with the appropriate strings taken from Google Developer Console. How do we handle this given that we probably don't want to commit that to a public repository, and given that we'd all be using our own separate id/secrets for development?

wilsonplau commented 3 years ago

This is usually done using environment variables. https://github.com/paulschwarz/spring-dotenv