-
Notifications
You must be signed in to change notification settings - Fork 78
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
Adding a new filter for the auth token #169
base: master
Are you sure you want to change the base?
Adding a new filter for the auth token #169
Conversation
I'd like to better understand how this would be used. Can you give me an example scenario where this would be useful? |
@psignoret absolutely. In our use-case, we have a separate AAD instance that allows us to log in as Vendors. To make this work, we had to unhook the built-in Clearly, this is not a scalable solution as we need to copy/paste any changes in the plugin into our custom With this filter in place, we can simply do the following without the overhead of maintaining the custom version of the
** Note that we have added *_vendor option to the admin ** |
So, taking a step back from the implementation, your goal is for users from more than one organization to be able to sign in to the block, right? Perhaps two specific organizations, rather than any organization? I'm not a fan of this approach (which relies on failed token requests), and would prefer to address this scenario intentionally. |
Perhaps we can filter the stored credentials instead? |
Just filtering the credentials shouldn't be enough, unless you have a rather strange app setup. Can you share how you've set up the app in the different Azure AD tenants? Normally, this would be addressed in one of two ways:
To me it sounds like your scenario is probably best suited for the first case (single-tenant app with B2B guest users). Though it technically works, I would say this plugin is not currently well-suited for a multi-tenant approach (e.g. there would need to be tenant whitelisting, per-tenant access groups, an easy path for admin consent, etc.). Since I suspect this may get into details you may not want to share publicly, can you please send me an email to [email protected], and we can discuss this further there? (We'll report back to this thread once we agree on the best approach.) |
0320183
to
37c8428
Compare
Being able to filter the auth token provides the ability to authenticate against a different AAD application.