You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe the problem.
I have an external system, it allows the user to UserCode or UserName to log in, the current IExternalLoginProvider only in one as a login name, because the UserManager.FindByNameAsync(string userName):
Considering from ExternalLoginProviderBase.GetUserInfoAsync(string userName) added to the IExternalLoginProvider, in order to solve this problem?
Describe the solution you'd like
publicinterfaceIExternalLoginProvider{/// <summary>/// Used to try authenticate a user by this source./// </summary>/// <param name="userName">User name or email address</param>/// <param name="plainPassword">Plain password of the user</param>/// <returns>True, indicates that this used has authenticated by this source</returns>Task<bool>TryAuthenticateAsync(stringuserName,stringplainPassword);/// <summary>/// Get external user info by user name./// </summary>/// <param name="userName">User name or email address</param>/// <returns>Returns user information for this user at this authentication source</returns>Task<ExternalLoginUserInfo>GetUserInfoAsync(stringuserName);/// <summary>/// 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./// </summary>/// <param name="userName">User name</param>/// <param name="providerName">The name of this provider</param>/// <returns>Newly created user</returns>Task<IdentityUser>CreateUserAsync(stringuserName,stringproviderName);/// <summary>/// 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./// </summary>/// <param name="providerName">The name of this provider</param>/// <param name="user">The user that can be updated</param>TaskUpdateUserAsync(IdentityUseruser,stringproviderName);/// <summary>/// Return a value indicating whether this source is enabled./// </summary>/// <returns></returns>Task<bool>IsEnabledAsync();}
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I have an external system, it allows the user to
UserCode
orUserName
to log in, the currentIExternalLoginProvider
only in one as a login name, because theUserManager.FindByNameAsync(string userName)
:abp/modules/identity/src/Volo.Abp.Identity.AspNetCore/Volo/Abp/Identity/AspNetCore/AbpSignInManager.cs
Lines 56 to 82 in 72e0c34
Considering from
ExternalLoginProviderBase.GetUserInfoAsync(string userName)
added to theIExternalLoginProvider
, in order to solve this problem?Describe the solution you'd like
abp/modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/AspNetIdentity/AbpResourceOwnerPasswordValidator.cs
Lines 87 to 100 in 7e50acd
Additional context
No response
The text was updated successfully, but these errors were encountered: