OpenID-connect redirect_uri incorrect protocol

Hi all,

I’m trying to support my colleagues in Cairo who have set up a DHIS2 instance with our AzureAD OpenID-Connect. The integration starts off OK, but for some reason the redirect_uri that gets sent to login.microsoft.com is http://edr.emro.who.int/oauth2/code/{tenant_id}, but the site is under https://.

They’ve offloaded https to NginX, and so I guess we could rewrite the header there.

Does anybody here have any idea why DHIS2 is sending a redirect_uri with http:// as the protocol?

We’ve set

server.https = on

We’ve also set the correct base_url and the correct

oidc.provider.azure.0.redirect_baseurl = https{etc}

Thanks in advance if anybody can help

1 Like