-
Notifications
You must be signed in to change notification settings - Fork 57
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
Custom URL Help - ref #347 #351
Comments
@henryh9n is a much better person to answer this, yet I suppose you can have them as path parameter, as suggested in the original issue:
|
@bjoern-js The reason I made this is that previously the ASC URL was computed as follows: acs_url = domain + get_reverse([acs, "acs", "django_saml2_auth:acs"]) # type: ignore this's not always correct, in some cases (local testing, dynamic routing, etc.) the domain might be different or I agree that it would be even more useful to pass the request/assertion to this function. We use the trigger in In either case, feel free to make a PR to add it, or I can have a look at this the next week. |
Thank you @henryh9n. We are working through it. Even though we have quite a good understanding of the entire flow, we are still thinking of the best way. For real multi tenancy, as we require it, we would also need to make another change. We will work through the entire flow and then create a PR soon. Interesting to see the feedback. Effectively, we decided to pass a "tenant id" to the signin request and pass it forward to the get_custom_acs function, that way people can construct the ACS return URL anyway they want. There must be a hook for the entity id. To make it dynamic as well, given that a different clients/users have different Azure etc accounts. Our setup requires that a customer can set their own SSO configuration on their account. We follow the approach that Bitwarden shows their users basically needing the customer to supply some key configurations, while providing them with some dynamic urls, i.e https://bitwarden.com/help/saml-microsoft-entra-id/ |
@bjoern-js Just note that new features and changes must not break backward compatibility. 🙏 |
@bjoern-js Had a quick look and it looks good to me in general. Please send over a PR for review. |
The feature from two weeks ago is very nice, however, this does not entirely solve the dynamic URL implementation.
https://github.com/grafana/django-saml2-auth/pull/348/files
The code in question:
The hook never gets the request object passed. In fact, no args or kwargs are passed.
How would one access the mentioned "tenant-1" or "tenant-2" URL parameter?
The text was updated successfully, but these errors were encountered: