Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Question: Invoke OAuth Middleware for every request with different auth endpoint #1758

Closed
aagarwal10 opened this issue May 15, 2018 · 1 comment
Milestone

Comments

@aagarwal10
Copy link

Is it possible to invoke OAuth Middleware at every request by configuring at runtime and not at the startup time?

Is factory based middleware (https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/extensibility?view=aspnetcore-2.0) an approach I can pursue?

I have my aspnet core v2.0 multi-tenant website where every tenant has its own specified Authorization endpoint and I need to point OAuth Middleware to a specific endpoint at runtime.

Hope I have made my scenario clear enough

@Tratcher
Copy link
Member

There's no built in support for multi-tenant, but take a look at the extensibility in aspnet/AuthSamples#44

@muratg muratg added this to the Discussions milestone May 17, 2018
@muratg muratg closed this as completed May 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants