
EvgeniyS.54448 (Customer) asked a question.
wrong redirect_url. http and port 443 instead https and
Hello, we have issue with okta integration. Our app (Directus) is running on NGINX. As per documentation we configured redirect_url as: https://host_name/project_name/auth/sso/okta/callback
and when trying to login via okta we see that redirect_url looks like: http://host_name:443/project_name/auth/sso/okta/callback
getting changed from being https to http and added port. As result we get BAD_REQUEST in response. Is it something you guys may help with?

What library you are using in NGINX? OpenID Connect?
In Okta try changing Redirect_Uri to http://host_name:443/project_name/auth/sso/okta/callback. if that works then try creating rule in NGINX to redirect HTTP to HTTPS. and then change back to https://host_name/project_name/auth/sso/okta/callback In Okta app.