Hello, I am trying to implement a custom authentic...
# troubleshoot
b
Hello, I am trying to implement a custom authenticator by adding a class that implements com.datahub.authentication.Authenticatorin the Metadataservice java process classpath. As I need to add this custom Authenticator to "Authentication Chain" by editing application.yml configuration file for the Metadata Service, instead of updating the application.yml file in Medataservice code, is there a way that I can pass the application.yml file as an argument to the java process which can load the configuration from the file that I have passed instead of the one from the code base?
b
So the only way to easily overwrite this application.yml is add it to the classpath for the java process (since we load it as a resource under
application.yml
. It's been on our team's backlog to make this process easier by providing a well-defined file path location to mount this file for easy overwrites
cc @gentle-hamburger-31302 - Do you have any recommendations here, since you've recently worked on this?
b
Thanks for the response John Joyce. For now, I am adding a application.yml file in to the classpath to load the custom authenticator that i have implemented.