I have an ASP.NET Core 2 Web Application and I am using the [Authorize] attribute on the controllers that require authentication. As authentication mechanism, I am using JWT
which I could configure in the Startup
class using
.AddJwtBearer(options => {
options.Audience = "....";
options.Authority = "....";
});
This would work great. My problem is that I don't have the information for audience and authority at startup and I need to configure this at runtime.
Is there any way to do this?