Class AuthService
Inheritance
object
AuthService
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public class AuthService : IAuthService, ITransientDependency
Constructors
AuthService(IIdentityModelAuthenticationService, ILogger<AuthService>, ICancellationTokenProvider, CliHttpClientFactory, RemoteServiceExceptionHandler, IJsonSerializer)
Declaration
public AuthService(IIdentityModelAuthenticationService authenticationService, ILogger<AuthService> logger, ICancellationTokenProvider cancellationTokenProvider, CliHttpClientFactory cliHttpClientFactory, RemoteServiceExceptionHandler remoteServiceExceptionHandler, IJsonSerializer jsonSerializer)
Parameters
Properties
AuthenticationService
Declaration
protected IIdentityModelAuthenticationService AuthenticationService { get; }
Property Value
CancellationTokenProvider
Declaration
public ICancellationTokenProvider CancellationTokenProvider { get; }
Property Value
CliHttpClientFactory
Declaration
protected CliHttpClientFactory CliHttpClientFactory { get; }
Property Value
JsonSerializer
Declaration
public IJsonSerializer JsonSerializer { get; }
Property Value
Logger
Declaration
protected ILogger<AuthService> Logger { get; }
Property Value
| Type |
Description |
| Microsoft.Extensions.Logging.ILogger<TCategoryName><AuthService> |
|
RemoteServiceExceptionHandler
Declaration
public RemoteServiceExceptionHandler RemoteServiceExceptionHandler { get; }
Property Value
Methods
DeviceLoginAsync()
Declaration
public Task DeviceLoginAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
GetLoginInfoAsync()
Declaration
public Task<LoginInfo> GetLoginInfoAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><LoginInfo> |
|
IsLoggedIn()
Declaration
public static bool IsLoggedIn()
Returns
LoginAsync(string, string, string)
Declaration
public Task LoginAsync(string userName, string password, string organizationName = null)
Parameters
| Type |
Name |
Description |
| string |
userName |
|
| string |
password |
|
| string |
organizationName |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
LogoutAsync()
Declaration
public Task LogoutAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Implements
Extension Methods