mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-01 18:23:32 +00:00
18 lines
542 B
C#
18 lines
542 B
C#
using System.Collections.ObjectModel;
|
|
using System.Security.Claims;
|
|
using Artemis.Core.Services;
|
|
|
|
namespace Artemis.WebClient.Workshop.Services;
|
|
|
|
public interface IAuthenticationService : IProtectedArtemisService
|
|
{
|
|
IObservable<bool> IsLoggedIn { get; }
|
|
ReadOnlyObservableCollection<Claim> Claims { get; }
|
|
|
|
IObservable<Claim?> GetClaim(string type);
|
|
Task<string?> GetBearer();
|
|
Task<bool> AutoLogin(bool force = false);
|
|
Task Login(CancellationToken cancellationToken);
|
|
void Logout();
|
|
bool GetIsEmailVerified();
|
|
} |