Chia sẻ qua


MicrosoftAccountAuthenticatedContext Constructor (IOwinContext, JObject, String, String, String)

 

Initializes a MicrosoftAccountAuthenticatedContext

Namespace:   Microsoft.Owin.Security.MicrosoftAccount
Assembly:  Microsoft.Owin.Security.MicrosoftAccount (in Microsoft.Owin.Security.MicrosoftAccount.dll)

Syntax

public MicrosoftAccountAuthenticatedContext(
    IOwinContext context,
    JObject user,
    string accessToken,
    string refreshToken,
    string expires
)
public:
MicrosoftAccountAuthenticatedContext(
    IOwinContext^ context,
    JObject^ user,
    String^ accessToken,
    String^ refreshToken,
    String^ expires
)
new : 
        context:IOwinContext *
        user:JObject *
        accessToken:string *
        refreshToken:string *
        expires:string -> MicrosoftAccountAuthenticatedContext
Public Sub New (
    context As IOwinContext,
    user As JObject,
    accessToken As String,
    refreshToken As String,
    expires As String
)

Parameters

  • user
    Type: Newtonsoft.Json.Linq.JObject

    The JSON-serialized user

  • accessToken
    Type: System.String

    The access token provided by the Microsoft authentication service

  • refreshToken
    Type: System.String

    The refresh token provided by Microsoft authentication service

See Also

MicrosoftAccountAuthenticatedContext Class
Microsoft.Owin.Security.MicrosoftAccount Namespace

Return to top