Table of Contents

Class AuthenticationController

Namespace
InSite.Api.Controllers
Assembly
InSite.UI.dll
public class AuthenticationController : ApiOpenController, IHttpController, IDisposable
Inheritance
AuthenticationController
Implements
Inherited Members

Constructors

AuthenticationController()

public AuthenticationController()

Methods

AuthenticateUser(LoginModel)

Confirm authentication and authorization access to SiteBuilder

[HttpPost]
[Route("api/authenticate")]
public HttpResponseMessage AuthenticateUser(LoginModel login)

Parameters

login LoginModel

Returns

HttpResponseMessage

Remarks

INTERNAL USE ONLY. This endpoint is used by Site Builder websites to authenticate site administrators. It returns HTTP 200 OK only if the login credentials are a valid match for an administrator with permission granted on the Site Builder tools.

GenerateToken(JwtRequest)

[HttpPost]
[Route("api/token")]
public HttpResponseMessage GenerateToken(JwtRequest request)

Parameters

request JwtRequest

Returns

HttpResponseMessage

ValidateToken()

[HttpPost]
[Route("api/token/validate")]
public Task<HttpResponseMessage> ValidateToken()

Returns

Task<HttpResponseMessage>