-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Each of the refimpl services contains its own 'AuthenticationApplication' class with a hard coded relative path to the oslcOAuthStore.xml file.
to improve the ability to map this file to a docker volume, enabling one to more easily set provisional to false for entries in the file.
I suggest you make it configurable with an environment variable.
e.g.
private AuthenticationApplication() {
// Start of user code constructor_init
// End of user code
var AUTH_VAR = "OAUTH_STORE_FILE";
final Map<String, String> env = System.getenv();
oslcConsumerStoreFilename= "./oslcOAuthStore.xml";
if (env.containsKey(AUTH_VAR)) {
oslcConsumerStoreFilename = env.get(AUTH_VAR);
log.debug("ENV variable '{}' found", AUTH_VAR);
} else {
log.debug("ENV variable '{}' not defined", AUTH_VAR);
}
oauth1TokenToApplicationConnector = new LRUCache<String, String>(2000);
// Start of user code constructor_finalize
// End of user code
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels