-
Notifications
You must be signed in to change notification settings - Fork 144
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
Question: multi-tenant site - request during authentication. #350
Comments
Hmm looks like I still need to override authenticate as the user isn't saved until _update_user is run.... |
just inherit this and use it in your webpath in the settings' urls.py you be able to do whatever you need with your users and sites |
Thanks so much @peppelinux for your quick response! I think the only issue i have now is how would I associate request.site based roles to my users based upon the attributes passed from the IDP. I think I'll still need some awareness to the request.context during _update_user. |
Hmm I see I can perhaps grab the attributes the |
Actually a simpler solve might be
|
@peppelinux Added a PR to pass the request to the _update_user here: #351. But totally understand if that's not the direction you'd like to go. |
During my post authentication processing I need to associate a Profile with a Site based on the current
request.site
Currently can't see a way to do this outside of extending modifying the internal logic of the Saml2Backend.authenticate method to passing the current site to the
_update_user
method.Just wanted to check and see if there were any other multi-tenant site strategies.
The text was updated successfully, but these errors were encountered: