POST api/portalauth/internal

Provides a token to internal users so that secured services may be subsequently accessed.

Request Information

URI Parameters

None.

Body Parameters

ERP.Domain.Common.Auth.UserAccountCredentials
NameDescriptionTypeAdditional information
Username

string

None.

Password

string

None.

Source

string

None.

Request Formats

application/json, text/json

Sample:
{
  "username": "sample string 1",
  "password": "********",
  "source": "sample string 3"
}

application/xml, text/xml

Sample:
<UserAccountCredentials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Domain.Common.Auth">
  <Password>sample string 2</Password>
  <Source>sample string 3</Source>
  <Username>sample string 1</Username>
</UserAccountCredentials>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ERP.Domain.Common.Auth.UserAccountCredentials'.

Response Information

Resource Description

ERP.Api.Controllers.CustomerPortal.TokenResponse
NameDescriptionTypeAdditional information
Token

Gets or sets the token.

string

None.

Roles

Gets the authorized roles.

Collection of string

None.

Lifetime

Gets the token lifetime (in seconds).

integer

None.

ContactId

Gets the contact id.

integer

None.

ApplicationStatus

Gets the application status.

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.