Change default endpoint in IdentityServer 4

前端 未结 5 1665
北荒
北荒 2020-12-29 14:49

I was working around IdentityServer 4 (1.0.0-beta5).

By default, the endpoint for authentication is: \'/connect/token\'.

How can I change t

5条回答
  •  星月不相逢
    2020-12-29 15:15

    Just add this to Startup.cs

    services.ConfigureApplicationCookie(config =>
    {
       config.Cookie.Name = "IdentityServer.Cookie";
       config.LoginPath = "/Auth/Login";
       config.LogoutPath = "/Auth/Logout";
    });
    

提交回复
热议问题