Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make RP aware of running behind ssl terminating front end proxy #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HarryKodden
Copy link

The exisiting Flask RP example application was not recoginizing X-Forwarded-* headers properly. For example if you run the example application behind a Treafik Proxy which is terminating TLS, the flask-rp application publishing http:// urls when registering itself at the Flaks-OP Provider instance.
This PR make use of the ProxyFix method to make the flask application acknownledge the forwarded headers properly.
Refer: https://werkzeug.palletsprojects.com/en/stable/middleware/proxy_fix/

@rohe rohe self-requested a review December 31, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant