Freigeben über


MicrosoftAccountAuthenticatedContext Class

 

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

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

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Security.Provider.BaseContext
    Microsoft.Owin.Security.MicrosoftAccount.MicrosoftAccountAuthenticatedContext

Syntax

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

Constructors

Name Description
System_CAPS_pubmethod MicrosoftAccountAuthenticatedContext(IOwinContext, JObject, String, String, String)

Initializes a MicrosoftAccountAuthenticatedContext

Properties

Name Description
System_CAPS_pubproperty AccessToken

Gets the access token provided by the Microsoft authenication service

System_CAPS_pubproperty Email

Gets the user email address

System_CAPS_pubproperty ExpiresIn

Gets the Microsoft access token expiration time

System_CAPS_pubproperty FirstName

Gets the user first name

System_CAPS_pubproperty Id

Gets the Microsoft Account user ID

System_CAPS_pubproperty Identity

Gets the ClaimsIdentity representing the user

System_CAPS_pubproperty LastName

Gets the user last name

System_CAPS_pubproperty Name

Gets the user name

System_CAPS_pubproperty OwinContext

(Inherited from BaseContext.)

System_CAPS_pubproperty Properties

Gets or sets a property bag for common authentication properties

System_CAPS_pubproperty RefreshToken

Gets the refresh token provided by Microsoft authentication service

System_CAPS_pubproperty Request

(Inherited from BaseContext.)

System_CAPS_pubproperty Response

(Inherited from BaseContext.)

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.MicrosoftAccount Namespace

Return to top