MicrosoftAccountAuthenticatedContext Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class MicrosoftAccountAuthenticatedContext _
    Inherits BaseContext
'Usage
Dim instance As MicrosoftAccountAuthenticatedContext
public class MicrosoftAccountAuthenticatedContext : BaseContext
public ref class MicrosoftAccountAuthenticatedContext : public BaseContext
type MicrosoftAccountAuthenticatedContext =  
    class 
        inherit BaseContext 
    end
public class MicrosoftAccountAuthenticatedContext extends BaseContext

The MicrosoftAccountAuthenticatedContext type exposes the following members.

Constructors

  Name Description
Public method MicrosoftAccountAuthenticatedContext Initializes a MicrosoftAccountAuthenticatedContext

Top

Properties

  Name Description
Public property AccessToken Gets the access token provided by the Microsoft authentication service
Public property Email Gets the user email address
Public property FirstName Gets the user first name
Public property Id Gets the Microsoft Account user ID
Public property Identity Gets the ClaimsIdentity representing the user
Public property LastName Gets the user last name
Public property Name Gets the user name
Public property OwinContext (Inherited from BaseContext.)
Public property Properties Gets or sets a property bag for common authentication properties
Public property Request (Inherited from BaseContext.)
Public property Response (Inherited from BaseContext.)
Public property User Gets the JSON-serialized user

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

Microsoft.Owin.Security.MicrosoftAccount Namespace