openmhealth / shimmer

An application for reading health data from third-party APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redirect url not changing

pratiksinghchauhan opened this issue · comments

Why is the redirect url always like http://localhost:8083/authorize/misfit/callback ?

I have exprienced this in many cases, I am not hosting my shimmer application on localhost, but other server, I have also tried to change parameter OPENMHEALTH_SHIMMER_DATAPROVIDERREDIRECTBASEURL in resource-server.env , I am using commands docker compose up -d , docker compose up -d resourceserver to run the project if that is requred

See my pull request #108

the issue in the code is that resource-server.env file has name of the variable wrong. So it picks values from application.yaml file. For docker set the values in env file as done in my PR

commented

Change the environment to "OPENMHEALTH_SHIMMER_DATA_PROVIDER_REDIRECT_BASE_URL"