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 |