Поділитися через


GoogleOAuth2AuthenticatedContext Class

 

Contains information about the login session as well as the user ClaimsIdentity.

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

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Security.Provider.BaseContext
    Microsoft.Owin.Security.Google.GoogleOAuth2AuthenticatedContext

Syntax

public class GoogleOAuth2AuthenticatedContext : BaseContext
public ref class GoogleOAuth2AuthenticatedContext : BaseContext
type GoogleOAuth2AuthenticatedContext = 
    class
        inherit BaseContext
    end
Public Class GoogleOAuth2AuthenticatedContext
    Inherits BaseContext

Constructors

Name Description
System_CAPS_pubmethod GoogleOAuth2AuthenticatedContext(IOwinContext, JObject, JObject)

Initializes a GoogleOAuth2AuthenticatedContext

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

Initializes a GoogleOAuth2AuthenticatedContext

Properties

Name Description
System_CAPS_pubproperty AccessToken

Gets the Google access token

System_CAPS_pubproperty Email

Gets the user's email

System_CAPS_pubproperty ExpiresIn

Gets the Google access token expiration time

System_CAPS_pubproperty FamilyName

Gets the user's family name

System_CAPS_pubproperty GivenName

Gets the user's given name

System_CAPS_pubproperty Id

Gets the Google user ID

System_CAPS_pubproperty Identity

Gets the ClaimsIdentity representing the user

System_CAPS_pubproperty Name

Gets the user's name

System_CAPS_pubproperty OwinContext

(Inherited from BaseContext.)

System_CAPS_pubproperty Profile

Gets the user's profile link

System_CAPS_pubproperty Properties

Gets or sets a property bag for common authentication properties

System_CAPS_pubproperty RefreshToken

Gets the Google refresh token

System_CAPS_pubproperty Request

(Inherited from BaseContext.)

System_CAPS_pubproperty Response

(Inherited from BaseContext.)

System_CAPS_pubproperty TokenResponse

Token response from Google

System_CAPS_pubproperty User

Gets the JSON-serialized user

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Owin.Security.Google Namespace

Return to top