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

Allowed the oauth login to work with spa #891

Closed
wants to merge 2 commits into from

Conversation

mmillmore
Copy link

@mmillmore mmillmore commented Dec 19, 2023

Allowed the oauth login to work with spa and SECURITY_REDIRECT_HOST by re-wirting the redirect URL, and stopping validate_redirect_url from erroring when the URL points to the redirect host.

Ignore the deprecation of pkg_resources in pytest to ensure it runs

Added unit tests for these changes

Fixes https://github.com/Flask-Middleware/flask-security/issues/884

mmillmore and others added 2 commits December 19, 2023 18:02
SECURITY_REDIRECT_HOST by re-wirting the redirect URL, and
stopping validate_redirect_url from erroring when the URL
points to the redirect host.

Ignore the deprecation of pkg_resources in pytest to ensure it runs

Added unit tests for these changes
@mmillmore mmillmore marked this pull request as ready for review December 19, 2023 18:09
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9cb959a) 98.29% compared to head (8e3033e) 98.29%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #891   +/-   ##
=======================================
  Coverage   98.29%   98.29%           
=======================================
  Files          34       34           
  Lines        4465     4466    +1     
=======================================
+ Hits         4389     4390    +1     
  Misses         76       76           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jwag956
Copy link
Collaborator

jwag956 commented Jan 21, 2024

An alternative fix was merged with #895
Please let me know if you have any other issues. Thanks for your report and PR.

@jwag956 jwag956 closed this Jan 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Login via social/oauth not respecting SECURITY_REDIRECT_HOST
2 participants