IdentityAuthSession
Assembly: ServiceStack.Extensions.dll
Declaration
public class IdentityAuthSession : AuthUserSession, IAuthSessionExtended, IAuthSession, IMeta, IRequireClaimsPrincipal
Properties
User
Declaration
public ClaimsPrincipal User { get; set; }
Inherited Properties
Address
Declaration
[DataMember(Order = 19)]
public string Address { get; set; }
Address2
Declaration
[DataMember(Order = 20)]
public string Address2 { get; set; }
Audiences
Declaration
[DataMember(Order = 45)]
public List<string> Audiences { get; set; }
AuthProvider
Declaration
[DataMember(Order = 42)]
public string AuthProvider { get; set; }
BirthDate
Declaration
[DataMember(Order = 17)]
public DateTime? BirthDate { get; set; }
BirthDateRaw
Declaration
[DataMember(Order = 18)]
public string BirthDateRaw { get; set; }
City
Declaration
[DataMember(Order = 21)]
public string City { get; set; }
Company
Declaration
[DataMember(Order = 13)]
public string Company { get; set; }
Country
Declaration
[DataMember(Order = 23)]
public string Country { get; set; }
CreatedAt
Declaration
[DataMember(Order = 33)]
public DateTime CreatedAt { get; set; }
Culture
Declaration
[DataMember(Order = 24)]
public string Culture { get; set; }
DisplayName
Declaration
[DataMember(Order = 12)]
public string DisplayName { get; set; }
Dns
Declaration
[DataMember(Order = 47)]
public string Dns { get; set; }
Email
Declaration
[DataMember(Order = 14)]
public string Email { get; set; }
EmailConfirmed
Declaration
[DataMember(Order = 54)]
public bool? EmailConfirmed { get; set; }
FacebookUserId
Declaration
[DataMember(Order = 8)]
public string FacebookUserId { get; set; }
FacebookUserName
Declaration
[DataMember(Order = 9)]
public string FacebookUserName { get; set; }
FirstName
Declaration
[DataMember(Order = 10)]
public string FirstName { get; set; }
FromToken
Declaration
[DataMember(Order = 38)]
public bool FromToken { get; set; }
FullName
Declaration
[DataMember(Order = 25)]
public string FullName { get; set; }
Gender
Declaration
[DataMember(Order = 26)]
public string Gender { get; set; }
Hash
Declaration
[DataMember(Order = 50)]
public string Hash { get; set; }
HomePhone
Declaration
[DataMember(Order = 51)]
public string HomePhone { get; set; }
Declaration
[DataMember(Order = 2)]
public string Id { get; set; }
IsAuthenticated
Declaration
[DataMember(Order = 37)]
public bool IsAuthenticated { get; set; }
Language
Declaration
[DataMember(Order = 27)]
public string Language { get; set; }
LastModified
Declaration
[DataMember(Order = 34)]
public DateTime LastModified { get; set; }
LastName
Declaration
[DataMember(Order = 11)]
public string LastName { get; set; }
MailAddress
Declaration
[DataMember(Order = 28)]
public string MailAddress { get; set; }
Declaration
[DataMember(Order = 44)]
public Dictionary<string, string> Meta { get; set; }
MobilePhone
Declaration
[DataMember(Order = 52)]
public string MobilePhone { get; set; }
Nickname
Declaration
[DataMember(Order = 29)]
public string Nickname { get; set; }
Permissions
Declaration
[DataMember(Order = 36)]
public List<string> Permissions { get; set; }
PhoneNumber
Declaration
[DataMember(Order = 16)]
public string PhoneNumber { get; set; }
PhoneNumberConfirmed
Declaration
[DataMember(Order = 55)]
public bool? PhoneNumberConfirmed { get; set; }
PostalCode
Declaration
[DataMember(Order = 30)]
public string PostalCode { get; set; }
PrimaryEmail
Declaration
[DataMember(Order = 15)]
public string PrimaryEmail { get; set; }
ProfileUrl
Declaration
[DataMember(Order = 39)]
public string ProfileUrl { get; set; }
ProviderOAuthAccess
Declaration
[DataMember(Order = 43)]
public List<IAuthTokens> ProviderOAuthAccess { get; set; }
ReferrerUrl
Declaration
[DataMember(Order = 1)]
public string ReferrerUrl { get; set; }
RequestTokenSecret
Declaration
[DataMember(Order = 32)]
public string RequestTokenSecret { get; set; }
Roles
Declaration
[DataMember(Order = 35)]
public List<string> Roles { get; set; }
Rsa
Declaration
[DataMember(Order = 48)]
public string Rsa { get; set; }
Scopes
Declaration
[DataMember(Order = 46)]
public List<string> Scopes { get; set; }
SecurityStamp
Declaration
[DataMember(Order = 57)]
public string SecurityStamp { get; set; }
Sequence
Declaration
[DataMember(Order = 40)]
public string Sequence { get; set; }
Sid
Declaration
[DataMember(Order = 49)]
public string Sid { get; set; }
State
Declaration
[DataMember(Order = 22)]
public string State { get; set; }
Tag
Declaration
[DataMember(Order = 41)]
public long Tag { get; set; }
TimeZone
Declaration
[DataMember(Order = 31)]
public string TimeZone { get; set; }
Declaration
[DataMember(Order = 7)]
public string TwitterScreenName { get; set; }
Declaration
[DataMember(Order = 6)]
public string TwitterUserId { get; set; }
TwoFactorEnabled
Declaration
[DataMember(Order = 56)]
public bool? TwoFactorEnabled { get; set; }
Type
Declaration
[DataMember(Order = 58)]
public string Type { get; set; }
UserAuthId
Declaration
[DataMember(Order = 3)]
public string UserAuthId { get; set; }
UserAuthName
User chosen Username when available or Email
Declaration
[DataMember(Order = 4)]
public string UserAuthName { get; set; }
UserName
Declaration
[DataMember(Order = 5)]
public string UserName { get; set; }
Webpage
Declaration
[DataMember(Order = 53)]
public string Webpage { get; set; }
Inherited Methods
GetPermissions(IAuthRepository)
Declaration
public virtual ICollection<string> GetPermissions(IAuthRepository authRepo)
Returns
System.Collections.Generic.ICollection<System.String>
Parameters
GetPermissionsAsync(IAuthRepositoryAsync, CancellationToken)
Declaration
public virtual async Task<ICollection<string>> GetPermissionsAsync(IAuthRepositoryAsync authRepo, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<System.String>>
Parameters
GetRoles(IAuthRepository)
Declaration
public virtual ICollection<string> GetRoles(IAuthRepository authRepo)
Returns
System.Collections.Generic.ICollection<System.String>
Parameters
GetRolesAsync(IAuthRepositoryAsync, CancellationToken)
Declaration
public virtual async Task<ICollection<string>> GetRolesAsync(IAuthRepositoryAsync authRepo, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.ICollection<System.String>>
Parameters
HasAllPermissionsAsync(ICollection<String>, IAuthRepositoryAsync, IRequest, CancellationToken)
High-level overridable API that ServiceStack uses to check whether a user has all requiredPermissions.
Declaration
public virtual async Task<bool> HasAllPermissionsAsync(ICollection<string> requiredPermissions, IAuthRepositoryAsync authRepo, IRequest req, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
HasAllRolesAsync(ICollection<String>, IAuthRepositoryAsync, IRequest, CancellationToken)
High-level overridable API that ServiceStack uses to check whether a user has all requiredRoles.
Declaration
public virtual async Task<bool> HasAllRolesAsync(ICollection<string> requiredRoles, IAuthRepositoryAsync authRepo, IRequest req, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
HasAnyPermissionsAsync(ICollection<String>, IAuthRepositoryAsync, IRequest, CancellationToken)
High-level overridable API that ServiceStack uses to check whether a user has any of the specified permissions.
Declaration
public virtual async Task<bool> HasAnyPermissionsAsync(ICollection<string> permissions, IAuthRepositoryAsync authRepo, IRequest req, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
HasAnyRolesAsync(ICollection<String>, IAuthRepositoryAsync, IRequest, CancellationToken)
High-level overridable API that ServiceStack uses to check whether a user has any of the specified roles.
Declaration
public virtual async Task<bool> HasAnyRolesAsync(ICollection<string> roles, IAuthRepositoryAsync authRepo, IRequest req, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
HasPermission(String, IAuthRepository)
Declaration
public virtual bool HasPermission(string permission, IAuthRepository authRepo)
Returns
System.Boolean
Parameters
HasPermissionAsync(String, IAuthRepositoryAsync, CancellationToken)
Declaration
public virtual async Task<bool> HasPermissionAsync(string permission, IAuthRepositoryAsync authRepo, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
HasRole(String, IAuthRepository)
Declaration
public virtual bool HasRole(string role, IAuthRepository authRepo)
Returns
System.Boolean
Parameters
HasRoleAsync(String, IAuthRepositoryAsync, CancellationToken)
Declaration
public virtual async Task<bool> HasRoleAsync(string role, IAuthRepositoryAsync authRepo, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
IsAuthorized(String)
Declaration
public virtual bool IsAuthorized(string provider)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | provider |
OnAuthenticated(IServiceBase, IAuthSession, IAuthTokens, Dictionary<String, String>)
Declaration
public virtual void OnAuthenticated(IServiceBase authService, IAuthSession session, IAuthTokens tokens, Dictionary<string, string> authInfo)
Parameters
OnAuthenticatedAsync(IServiceBase, IAuthSession, IAuthTokens, Dictionary<String, String>, CancellationToken)
Declaration
public virtual Task OnAuthenticatedAsync(IServiceBase authService, IAuthSession session, IAuthTokens tokens, Dictionary<string, string> authInfo, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
OnCreated(IRequest)
Declaration
public virtual void OnCreated(IRequest httpReq)
Parameters
OnLoad(IRequest)
Declaration
public virtual void OnLoad(IRequest httpReq)
Parameters
OnLogout(IServiceBase)
Declaration
public virtual void OnLogout(IServiceBase authService)
Parameters
OnLogoutAsync(IServiceBase, CancellationToken)
Declaration
public virtual Task OnLogoutAsync(IServiceBase authService, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
OnRegistered(IRequest, IAuthSession, IServiceBase)
Declaration
public virtual void OnRegistered(IRequest httpReq, IAuthSession session, IServiceBase service)
Parameters
OnRegisteredAsync(IRequest, IAuthSession, IServiceBase, CancellationToken)
Declaration
public virtual Task OnRegisteredAsync(IRequest httpReq, IAuthSession session, IServiceBase service, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Validate(IServiceBase, IAuthSession, IAuthTokens, Dictionary<String, String>)
Declaration
public virtual IHttpResult Validate(IServiceBase authService, IAuthSession session, IAuthTokens tokens, Dictionary<string, string> authInfo)
Returns
ServiceStack.Web.IHttpResult
Parameters
ValidateAsync(IServiceBase, IAuthSession, IAuthTokens, Dictionary<String, String>, CancellationToken)
Declaration
public virtual Task<IHttpResult> ValidateAsync(IServiceBase authService, IAuthSession session, IAuthTokens tokens, Dictionary<string, string> authInfo, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Web.IHttpResult>
Parameters
Implements