Skip to content

Commit

Permalink
Fixup startup.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgodbe committed Mar 12, 2020
1 parent 82f9604 commit b3b1da4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void ConfigureServices(IServiceCollection services)
// Configure the Authority to the expected value for your authentication provider
// This ensures the token is appropriately validated
options.Authority = "http://localhost:5000/";
options.RequireHttpsMetadata = false;

// We have to hook the OnMessageReceived event in order to
// allow the JWT authentication handler to read the access
Expand Down Expand Up @@ -87,11 +88,13 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseHsts();
}

app.UseAuthentication();
app.UseHttpsRedirection();
app.UseBlazorFrameworkFiles();
app.UseStaticFiles();

app.UseRouting();
app.UseAuthorization();

app.UseEndpoints(endpoints =>
{
Expand Down

0 comments on commit b3b1da4

Please sign in to comment.