Show / Hide Table of Contents

Class AuthService

Inheritance
object
AuthService
Implements
IAuthService
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Cli.Auth
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
Type Name Description
IIdentityModelAuthenticationService authenticationService
ILogger<AuthService> logger
ICancellationTokenProvider cancellationTokenProvider
CliHttpClientFactory cliHttpClientFactory
RemoteServiceExceptionHandler remoteServiceExceptionHandler
IJsonSerializer jsonSerializer

Properties

AuthenticationService

Declaration
protected IIdentityModelAuthenticationService AuthenticationService { get; }
Property Value
Type Description
IIdentityModelAuthenticationService

CancellationTokenProvider

Declaration
public ICancellationTokenProvider CancellationTokenProvider { get; }
Property Value
Type Description
ICancellationTokenProvider

CliHttpClientFactory

Declaration
protected CliHttpClientFactory CliHttpClientFactory { get; }
Property Value
Type Description
CliHttpClientFactory

JsonSerializer

Declaration
public IJsonSerializer JsonSerializer { get; }
Property Value
Type Description
IJsonSerializer

Logger

Declaration
protected ILogger<AuthService> Logger { get; }
Property Value
Type Description
ILogger<AuthService>

RemoteServiceExceptionHandler

Declaration
public RemoteServiceExceptionHandler RemoteServiceExceptionHandler { get; }
Property Value
Type Description
RemoteServiceExceptionHandler

Methods

CheckMultipleOrganizationsAsync(string)

Declaration
public Task<bool> CheckMultipleOrganizationsAsync(string username)
Parameters
Type Name Description
string username
Returns
Type Description
Task<bool>

DeviceLoginAsync()

Declaration
public Task DeviceLoginAsync()
Returns
Type Description
Task

GetLoginInfoAsync()

Declaration
public Task<LoginInfo> GetLoginInfoAsync()
Returns
Type Description
Task<LoginInfo>

IsLoggedIn()

Declaration
public static bool IsLoggedIn()
Returns
Type Description
bool

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
Task

LogoutAsync()

Declaration
public Task LogoutAsync()
Returns
Type Description
Task

Implements

IAuthService
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform