Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save talkingdotnet/9010a12a21069ce90b792b1ed0b79157 to your computer and use it in GitHub Desktop.
Save talkingdotnet/9010a12a21069ce90b792b1ed0b79157 to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
services.AddCookieAuthentication(o => o.LoginPath = "/api/login");
}
public void Configure(IApplicationBuilder app)
{
app.UseAuthentication();
app.UseMvc();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment