OHDSI Home | Forums | Wiki | Github

Atlas/WebAPI Turn security on/off dynamically

Hi everyone,

I have a question, is there possibility to turn on/of and configure WebAPI security during deployment (aka via docker-compose.yml)?

Here is the use case:
We have in our project 2 types of environments:

  1. PROD/TEST environment - which have to be configured to work with security (Authorization with Active Directory.
    2.Development environment which we do not need to have a security on.

The main question: is there any way that we wouldn’t have to recompile WebAPI separatelly for each type of environment? I mean will have just separate docker-compose.yml for each environment and reuse same docker image?