Barry
Barry

Reputation: 415

What is the difference between /auth and /authenticate?

Swagger exposes the following endpoints :

swagger

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

Answers (1)

mythz
mythz

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

Related Questions