LoginController.Post Method (String)
Handler for client login flows (where the client provides the initial token instead of us obtaining it server side)
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
<DebuggerStepThroughAttribute> Public Overridable Function Post ( authenticationProvider As String ) As Task(Of HttpResponseMessage)
Parameters
- authenticationProvider
-
Type:
System.String
The authentication provider to use for the login
Return Value
Type: System.Threading.Tasks.Task(Of HttpResponseMessage)If the login is successful, the method returns a LoginResult containing the login details. A 401 status code is returned otherwise.
Clients will post a provider JWT token to this endpoint via an Authorize header using scheme "Bearer", or alternatively via the POST body (e.g. { access_token: "ABC123" }). We use the Owin authentication middleware to validate that token and produce an identity.
Show: