共用方式為


GoogleOAuth2AuthenticatedContext Constructor

 

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

Overload List

Name Description
System_CAPS_pubmethod GoogleOAuth2AuthenticatedContext(IOwinContext, JObject, JObject)

Initializes a GoogleOAuth2AuthenticatedContext

System_CAPS_pubmethod GoogleOAuth2AuthenticatedContext(IOwinContext, JObject, String, String, String)

Initializes a GoogleOAuth2AuthenticatedContext

See Also

GoogleOAuth2AuthenticatedContext Class
Microsoft.Owin.Security.Google Namespace

Return to top

GoogleOAuth2AuthenticatedContext Constructor (IOwinContext, JObject, JObject)

Initializes a GoogleOAuth2AuthenticatedContext

Syntax

public GoogleOAuth2AuthenticatedContext(
    IOwinContext context,
    JObject user,
    JObject tokenResponse
)
public:
GoogleOAuth2AuthenticatedContext(
    IOwinContext^ context,
    JObject^ user,
    JObject^ tokenResponse
)
new : 
        context:IOwinContext *
        user:JObject *
        tokenResponse:JObject -> GoogleOAuth2AuthenticatedContext
Public Sub New (
    context As IOwinContext,
    user As JObject,
    tokenResponse As JObject
)

Parameters

  • user
    Type: Newtonsoft.Json.Linq.JObject

    The JSON-serialized Google user info

  • tokenResponse
    Type: Newtonsoft.Json.Linq.JObject

    The JSON-serialized token response Google

Return to top

GoogleOAuth2AuthenticatedContext Constructor (IOwinContext, JObject, String, String, String)

Initializes a GoogleOAuth2AuthenticatedContext

Syntax

public GoogleOAuth2AuthenticatedContext(
    IOwinContext context,
    JObject user,
    string accessToken,
    string refreshToken,
    string expires
)
public:
GoogleOAuth2AuthenticatedContext(
    IOwinContext^ context,
    JObject^ user,
    String^ accessToken,
    String^ refreshToken,
    String^ expires
)
new : 
        context:IOwinContext *
        user:JObject *
        accessToken:string *
        refreshToken:string *
        expires:string -> GoogleOAuth2AuthenticatedContext
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 Google user info

  • refreshToken
    Type: System.String

    Goolge OAuth 2.0 refresh token

Return to top