Reputation: 415
Swagger exposes the following endpoints :
The payloads look identicle and the documentation : https://docs.servicestack.net/authentication-and-authorization
Never mentions the /authenticate endpoint. The DTO generator for typescript also shows these as being identicle.
Is there a difference ? Is there a different use case for both ? Is it merely a legacy endpoint?
Is there a way to hide /authenticate ?
Upvotes: 2
Views: 67
Reputation: 143339
They're both aliases to the ServiceStack's AuthenticateService
, preserved for backwards compatibility.
You can remove the previous /authenticate
routes after registering the AuthFeature
plugin with:
Plugins.Add(new AuthFeature(...));
GetPlugin<AuthFeature>().ServiceRoutes[typeof(AuthenticateService)] = new[] {
"/auth", "/auth/{provider}"
};
Upvotes: 2