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

Deprecate server_port from request data dictionary #276

Merged

Conversation

akx
Copy link
Collaborator

@akx akx commented Jul 23, 2021

server_port is unnecessary, since the HTTP Host header sent by the client already includes any non-standard port. (This is stuffed into http_host.)

In addition, when the Python application server is sitting behind a reverse proxy/TLS terminator, SERVER_PORT is likely to be wrong anyway (since it would be the server port of the non-reverse-proxied server).

See #273 (comment)

@akx akx force-pushed the remove-server-port-from-request-data branch from 96d3b79 to 3a208fb Compare July 25, 2021 12:05
`server_port` is unnecessary, since the HTTP Host header sent by the client
already includes any non-standard port.  In addition, when the Python
application server is sitting behind a reverse proxy/TLS terminator,
SERVER_PORT is likely to be wrong anyway (since it would be the server port
of the non-reverse-proxied server).

See SAML-Toolkits#273 (comment)
@akx akx force-pushed the remove-server-port-from-request-data branch from 3a208fb to f435584 Compare July 25, 2021 12:08
@akx
Copy link
Collaborator Author

akx commented Jul 25, 2021

@pitbulk Review concerns addressed. I don't know where the review comments went – maybe you had made them as comments on the commit instead of a PR review?

@pitbulk pitbulk merged commit f60a6f8 into SAML-Toolkits:master Jul 26, 2021
shadowbrush pushed a commit to shadowbrush/social-core that referenced this pull request Mar 2, 2022
server_port has been deprecated by python3-saml, see: SAML-Toolkits/python3-saml#276

If the server application is running behind a load balancer or a reverse proxy the request port might not match the SAML configuration.

This will resolve issue python-social-auth#609 - python-social-auth#609
nijel pushed a commit to python-social-auth/social-core that referenced this pull request Mar 3, 2022
server_port has been deprecated by python3-saml, see: SAML-Toolkits/python3-saml#276

If the server application is running behind a load balancer or a reverse proxy the request port might not match the SAML configuration.

This will resolve issue #609 - #609
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.

2 participants