Browse Source
Merge pull request #10951 from abpframework/studio-login-fail-message
Cli: Create IAuthService
pull/10972/head
Ahmet Çotur
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
14 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/IAuthService.cs
-
studio/src/Volo.Abp.Studio.Domain.Shared/Volo/Abp/Studio/AbpStudioErrorCodes.cs
|
|
|
@ -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"; |
|
|
|
|