Suppose Two different customer having their respective client-id,client-secretkey,okta-domain. Based on my research on okta, I found that these parameters are to be set in application.properties file. How to set these parameter dynamically so that customer should redirect to their respective domain login page?
Edit :-
customer 1:-
a)DOMAIN :- dev-1234.okta.com
b)CLIENT_ID :- abcd
c)CLIENT_SECRET_KEY :- efgh
customer 2 :-
a)DOMAIN :- dev-5678.okta.com
b)CLIENT_ID :- hijk
c)CLIENT_SECRET_KEY :- lmno
Suppose I select customer 2 , so customer 2's data should be set as environment variables(values in application.properties or application.yaml) ,but in spring boot there isn't any way to set environment variable dynamically.