Reputation: 5158
I configured my identity server client like this in Startup.cs
app.UseJwtBearerAuthentication(options =>
{
options.Authority = Configuration["Urls:IdentityServer"];
options.RequireHttpsMetadata = false;
options.Audience = Configuration["Urls:IdentityServer"] + "/resources";
options.AutomaticAuthenticate = true;
}
will this take of all the recommended JWT validations(signature, nonce etc) or do I have to write any validations of my own?
Upvotes: 0
Views: 287
Reputation: 7435
You should require HTTPS on the metadata in production.
In addition to the JWT middleware, you will need to do scope validation.
Upvotes: 1