-
Notifications
You must be signed in to change notification settings - Fork 0
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
Rebase django-saml2-auth to 2.2.1 #4
Conversation
We pass the result of `get_current_domain` to pysaml2 to validate the source of the incoming StatusResponse (the scheme+host of the request). This is not viable in a reverse proxy scenario, in particular when the host, port, and/or scheme of the django server changes with churn. As a solution, alter `get_current_domain` to just use a setting variable, `ASSERTION_URL`, instead of the scheme and host of the incoming SAML request. If the setting is not present, use the current behavior.
Add optional ASSERTION_URL setting
Import reverse from django.url for versions >= 2.0
removed local temp file creation
Use Group.set() instead of assignment for Django 2.0 support
unquoting the logout view method reference
…e_proposal adding optional configuration for ADFS SAML compatibility
Allow pysaml2 to be a more recent version.
Allow installation of newer versions of pysaml2 to resolve vulnerabilities
…wt dependency, made the User model come from get_user_model method
…New settings: USE_JWT and FRONTEND_URL. Added django-rest-auth to setup.py
Added new user creation setting.
Added support for local metadata file.
Add JWT Token Support for Single Page Applications through Django Rest Framework
Update README.rst
ae2a315
to
2cce832
Compare
@caioariede Could we actually split this up into 2 PRs? One with the rebase and another with the single change for us? That way we can easily track via a PR? |
5dce3b6
to
7914e93
Compare
@FabioFleitas updated |
|
||
# Optional settings | ||
# Optional settings below | ||
'DEFAULT_NEXT_URL': '/admin', # Custom target redirect URL after the user get logged in. Default to /admin if not set. This setting will be overwritten if you have parameter ?next= specificed in the login URL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we need to update this in our settings?
# Optional settings | ||
# Optional settings below | ||
'DEFAULT_NEXT_URL': '/admin', # Custom target redirect URL after the user get logged in. Default to /admin if not set. This setting will be overwritten if you have parameter ?next= specificed in the login URL. | ||
'CREATE_USER': 'TRUE', # Create a new Django user when a new user logs in. Defaults to True. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will likely want to turn this off in our settings as well right?
No description provided.