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 | |
---|---|---|
MicrosoftAccountAuthenticatedContext(IOwinContext, JObject, String, String, String) | Initializes a MicrosoftAccountAuthenticatedContext |
Properties
Name | Description | |
---|---|---|
AccessToken | Gets the access token provided by the Microsoft authenication service |
|
Gets the user email address |
||
ExpiresIn | Gets the Microsoft access token expiration time |
|
FirstName | Gets the user first name |
|
Id | Gets the Microsoft Account user ID |
|
Identity | Gets the ClaimsIdentity representing the user |
|
LastName | Gets the user last name |
|
Name | Gets the user name |
|
OwinContext | (Inherited from BaseContext.) |
|
Properties | Gets or sets a property bag for common authentication properties |
|
RefreshToken | Gets the refresh token provided by Microsoft authentication service |
|
Request | (Inherited from BaseContext.) |
|
Response | (Inherited from BaseContext.) |
|
User | Gets the JSON-serialized user |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
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