Startup JwtBearer IncludeErrorDetails look at environment.IsDevelopment()

This commit is contained in:
hydrant
2019-09-29 20:37:25 +02:00
parent 23092c4fa7
commit 0374e6bb9e

View File

@@ -63,7 +63,7 @@ namespace ReallifeGamemode.DataService
})
.AddJwtBearer(o =>
{
o.IncludeErrorDetails = true;
o.IncludeErrorDetails = this.environment.IsDevelopment();
o.RequireHttpsMetadata = this.environment.IsProduction();
o.SaveToken = false;
o.TokenValidationParameters = new TokenValidationParameters