/auth 和 /authenticate 有什么区别?

What is the difference between /auth and /authenticate?

Swagger 公开了以下端点:

有效载荷和文档看起来完全相同: https://docs.servicestack.net/authentication-and-authorization

从不提及 /authenticate 端点。打字稿的 DTO 生成器也显示这些是相同的。

有区别吗?两者都有不同的用例吗?它仅仅是一个遗留端点吗?

有没有办法隐藏 /authenticate ?

它们都是 aliases to the ServiceStack's AuthenticateService,为向后兼容而保留。

注册 AuthFeature 插件后,您可以删除之前的 /authenticate 路由:

Plugins.Add(new AuthFeature(...));

GetPlugin<AuthFeature>().ServiceRoutes[typeof(AuthenticateService)] = new[] {
    "/auth", "/auth/{provider}"
};