samples-python-flask icon indicating copy to clipboard operation
samples-python-flask copied to clipboard

Using redirect_uri from configuration instead of request.base_url

Open sjtarik opened this issue 3 years ago • 1 comments

Can we just use the redirect_uri from config in this line instead of getting it from request object? A bug in request library that returns the URL with http:// regardless of the original URL is http or https causing an issue in sample app.

https://github.com/okta/samples-python-flask/blob/44387a1a5449988f9d4ab95cf428ef88237f2d3e/okta-hosted-login/main.py#L71

sjtarik avatar Jun 10 '22 00:06 sjtarik

Ditto, I've encountered same issue. I ended up passing url from config file

mrthomaskim avatar Jan 19 '23 21:01 mrthomaskim