Show / Hide Table of Contents

Class ExternalLoginProviderBase

Inheritance
object
ExternalLoginProviderBase
FakeExternalLoginProvider
ExternalLoginProviderWithPasswordBase
LdapExternalLoginProvider
Implements
IExternalLoginProvider
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Identity
Assembly: Volo.Abp.Identity.Domain.dll
Syntax
public abstract class ExternalLoginProviderBase : IExternalLoginProvider

Constructors

ExternalLoginProviderBase(IGuidGenerator, ICurrentTenant, IdentityUserManager, IIdentityUserRepository, IOptions<IdentityOptions>)

Declaration
protected ExternalLoginProviderBase(IGuidGenerator guidGenerator, ICurrentTenant currentTenant, IdentityUserManager userManager, IIdentityUserRepository identityUserRepository, IOptions<IdentityOptions> identityOptions)
Parameters
Type Name Description
IGuidGenerator guidGenerator
ICurrentTenant currentTenant
IdentityUserManager userManager
IIdentityUserRepository identityUserRepository
IOptions<IdentityOptions> identityOptions

Properties

CurrentTenant

Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Type Description
ICurrentTenant

GuidGenerator

Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
Type Description
IGuidGenerator

IdentityOptions

Declaration
protected IOptions<IdentityOptions> IdentityOptions { get; }
Property Value
Type Description
IOptions<IdentityOptions>

IdentityUserRepository

Declaration
protected IIdentityUserRepository IdentityUserRepository { get; }
Property Value
Type Description
IIdentityUserRepository

UserManager

Declaration
protected IdentityUserManager UserManager { get; }
Property Value
Type Description
IdentityUserManager

Methods

CreateUserAsync(string, string)

Declaration
public virtual Task<IdentityUser> CreateUserAsync(string userName, string providerName)
Parameters
Type Name Description
string userName
string providerName
Returns
Type Description
Task<IdentityUser>

CreateUserAsync(ExternalLoginUserInfo, string, string)

Declaration
protected virtual Task<IdentityUser> CreateUserAsync(ExternalLoginUserInfo externalUser, string userName, string providerName)
Parameters
Type Name Description
ExternalLoginUserInfo externalUser
string userName
string providerName
Returns
Type Description
Task<IdentityUser>

GetUserInfoAsync(string)

Declaration
protected abstract Task<ExternalLoginUserInfo> GetUserInfoAsync(string userName)
Parameters
Type Name Description
string userName
Returns
Type Description
Task<ExternalLoginUserInfo>

GetUserInfoAsync(IdentityUser)

Declaration
protected virtual Task<ExternalLoginUserInfo> GetUserInfoAsync(IdentityUser user)
Parameters
Type Name Description
IdentityUser user
Returns
Type Description
Task<ExternalLoginUserInfo>

IsEnabledAsync()

Declaration
public abstract Task<bool> IsEnabledAsync()
Returns
Type Description
Task<bool>

TryAuthenticateAsync(string, string)

Declaration
public abstract Task<bool> TryAuthenticateAsync(string userName, string plainPassword)
Parameters
Type Name Description
string userName
string plainPassword
Returns
Type Description
Task<bool>

UpdateUserAsync(IdentityUser, string)

Declaration
public virtual Task UpdateUserAsync(IdentityUser user, string providerName)
Parameters
Type Name Description
IdentityUser user
string providerName
Returns
Type Description
Task

UpdateUserAsync(IdentityUser, ExternalLoginUserInfo, string)

Declaration
protected virtual Task UpdateUserAsync(IdentityUser user, ExternalLoginUserInfo externalUser, string providerName)
Parameters
Type Name Description
IdentityUser user
ExternalLoginUserInfo externalUser
string providerName
Returns
Type Description
Task

Implements

IExternalLoginProvider

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform