Skip to content

Conversation

@ganiserb
Copy link
Contributor

This adds support for a custom setting to redirect ACS after a successful authentication when the IdP does not specify a RelayState attribute.


# redirect the user to the view where he came from
relay_state = request.POST.get('RelayState', '/')
default_relay_state = get_custom_setting('ACS_DEFAULT_REDIRECT_URL', '/')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with this, but how about changing the '/' default to settings.LOGIN_REDIRECT_URL?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. It would be consistent with the lines below.

@knaperek
Copy link
Collaborator

Thank you, I'll gladly merge this!

knaperek added a commit that referenced this pull request Mar 18, 2016
@knaperek knaperek merged commit 11848cb into IdentityPython:master Mar 18, 2016
knaperek pushed a commit that referenced this pull request Feb 5, 2020
peppelinux pushed a commit that referenced this pull request May 1, 2023
* split authenticate into separate overridable function

* cleaner exception

* basic unit test

* remove new test

* space to revert change

* return the user
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