POST api/Account/AllowLogon

Allow or deny user to logon into application.

Request Information

URI Parameters

None.

Body Parameters

AllowLogonPost
NameDescriptionTypeAdditional information
UserProviderKey

User id

string

None.

IsApproved

If true the user can logon otherwise cannot

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserProviderKey": "8fe82367-2217-4b9a-99de-757057c67477",
  "IsApproved": false
}

application/xml, text/xml

Sample:
<AllowLogonPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <IsApproved>false</IsApproved>
  <UserProviderKey>8fe82367-2217-4b9a-99de-757057c67477</UserProviderKey>
</AllowLogonPost>

Response Information

Resource Description

HttpStatusCode 200 OK or 400 BadRequest with Message.

IHttpActionResult

None.