Merge pull request #10951 from abpframework/studio-login-fail-message

Cli: Create IAuthService
pull/10972/head
Ahmet Çotur 3 years ago committed by GitHub
commit cd1fd0654d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,7 @@ using Volo.Abp.Threading;
namespace Volo.Abp.Cli.Auth;
public class AuthService : ITransientDependency
public class AuthService : IAuthService, ITransientDependency
{
protected IIdentityModelAuthenticationService AuthenticationService { get; }
protected ILogger<AuthService> Logger { get; }

@ -0,0 +1,12 @@
using System.Threading.Tasks;
namespace Volo.Abp.Cli.Auth;
public interface IAuthService
{
Task<LoginInfo> GetLoginInfoAsync();
Task LoginAsync(string userName, string password, string organizationName = null);
Task LogoutAsync();
}

@ -21,6 +21,7 @@ public static class AbpStudioErrorCodes
public const string PackageNotSpecified = "AbpStudio:PackageNotSpecified";
public const string DbmsMustBeSpecified = "AbpStudio:DbmsMustBeSpecified";
public const string UserNotLoggedIn = "AbpStudio:UserNotLoggedIn";
public const string LoginFailed = "AbpStudio:LoginFailed";
public const string PackageAlreadyExist = "AbpStudio:PackageAlreadyExist";
public const string AbpModuleFileNotFound = "AbpStudio:AbpModuleFileNotFound";
public const string DllNotFound = "AbpStudio:DllNotFound";

Loading…
Cancel
Save