Show / Hide Table of Contents

Interface IExternalLoginProvider

Namespace: Volo.Abp.Identity
Assembly: Volo.Abp.Identity.Domain.dll
Syntax
public interface IExternalLoginProvider

Methods

CreateUserAsync(String, String)

This method is called when a user is authenticated by this source but the user does not exists yet. So, the source should create the user and fill the properties.

Declaration
Task<IdentityUser> CreateUserAsync(string userName, string providerName)
Parameters
Type Name Description
System.String userName

User name

System.String providerName

The name of this provider

Returns
Type Description
Task<IdentityUser>

Newly created user

TryAuthenticateAsync(String, String)

Used to try authenticate a user by this source.

Declaration
Task<bool> TryAuthenticateAsync(string userName, string plainPassword)
Parameters
Type Name Description
System.String userName

User name or email address

System.String plainPassword

Plain password of the user

Returns
Type Description
Task<System.Boolean>

True, indicates that this used has authenticated by this source

UpdateUserAsync(IdentityUser, String)

This method is called after an existing user is authenticated by this source. It can be used to update some properties of the user by the source.

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

The user that can be updated

System.String providerName

The name of this provider

Returns
Type Description
Task

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft