I have successfully implemented OAUTH2 in my Vaadin application.
I generated two separate keys,
one for dev with homepage url pointing to http://localhost:8080/ and
one for prod point to my prod server.
Every time I need to work on the code I need to comment out the non relevant keys in application.properties.
This is not much of a problem but a slight irritant.
What is the prescribed way to approach this?
Is there any way to figure out dev/prod mode programatically and load the keys accordingly? (Perhaps with a Config where the keys are declared in the code instead of picking from the application.properties)?
Note: The application.properties does not allow duplicates of spring.security.oauth2.client.registration.xxx.client-id and spring.security.oauth2.client.registration.xxx.client-secret