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

Rebase django-saml2-auth to 2.2.1 #4

Merged
merged 39 commits into from
Aug 6, 2019
Merged

Conversation

caioariede
Copy link

No description provided.

fang.li and others added 30 commits April 13, 2017 17:22
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
@caioariede caioariede force-pushed the fix/rebase_to_2.2.1_a branch from ae2a315 to 2cce832 Compare August 6, 2019 11:12
@caioariede caioariede requested a review from FabioFleitas August 6, 2019 11:24
@FabioFleitas
Copy link
Member

@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?

@caioariede caioariede force-pushed the fix/rebase_to_2.2.1_a branch from 5dce3b6 to 7914e93 Compare August 6, 2019 17:20
@caioariede
Copy link
Author

@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.
Copy link
Member

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.
Copy link
Member

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?

@caioariede caioariede merged commit 072b806 into master Aug 6, 2019
@caioariede caioariede deleted the fix/rebase_to_2.2.1_a branch August 6, 2019 17:32
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.