POST api/Account/AllowLogon
Allow or deny user to logon into application.
Request Information
URI Parameters
None.
Body Parameters
AllowLogonPostName | Description | Type | Additional 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": "9b5d94fd-8e2b-437c-84ad-b8894763913d", "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>9b5d94fd-8e2b-437c-84ad-b8894763913d</UserProviderKey> </AllowLogonPost>
Response Information
Resource Description
HttpStatusCode 200 OK or 400 BadRequest with Message.
IHttpActionResultNone.