Interface IStrataraSignInManager
- Namespace
- Stratara.Identity.Core.Abstractions
- Assembly
- Stratara.Identity.Core.dll
Channel-agnostic sign-in manager surface. Implementations wrap the host's native identity machinery
(e.g. ASP.NET Core SignInManager<TUser> for server-side Blazor; HTTP calls to the identity
endpoint for non-web hosts) and produce the unified StrataraSignInResult.
public interface IStrataraSignInManager
- Extension Methods
Methods
PasswordSignInAsync(string, string, bool, bool, CancellationToken)
Performs a password sign-in.
Task<StrataraSignInResult> PasswordSignInAsync(string email, string password, bool isPersistent, bool lockoutOnFailure, CancellationToken cancellationToken = default)
Parameters
emailstringUser email.
passwordstringUser password.
isPersistentboolWhether the resulting session should persist.
lockoutOnFailureboolWhether repeated failures should advance the lockout counter.
cancellationTokenCancellationTokenPropagated to the underlying identity stack and any HTTP / DB calls.
Returns
RefreshSignInAsync(AccessTokenInfo, CancellationToken)
Refreshes the current sign-in using the given AccessTokenInfo's refresh token.
Task<bool> RefreshSignInAsync(AccessTokenInfo tokenInfo, CancellationToken cancellationToken = default)
Parameters
tokenInfoAccessTokenInfoThe current access-token info.
cancellationTokenCancellationTokenPropagated to the refresh HTTP call and any subsequent token-persist.
Returns
SignOutAsync(CancellationToken)
Signs the current user out and clears any persisted token state.
Task SignOutAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenPropagated to the underlying identity stack and any HTTP / DB calls.
Returns
TwoFactorAuthenticatorSignInAsync(string, bool, bool, CancellationToken)
Completes a two-factor sign-in step using a TOTP code.
Task<StrataraSignInResult> TwoFactorAuthenticatorSignInAsync(string code, bool isPersistent, bool rememberClient, CancellationToken cancellationToken = default)
Parameters
codestringTOTP authenticator code.
isPersistentboolWhether the resulting session should persist.
rememberClientboolWhether to remember this client to skip future two-factor prompts.
cancellationTokenCancellationTokenPropagated to the underlying identity stack and any HTTP / DB calls.
Returns
TwoFactorRecoveryCodeSignInAsync(string, CancellationToken)
Completes a two-factor sign-in step using a recovery code.
Task<StrataraSignInResult> TwoFactorRecoveryCodeSignInAsync(string recoveryCode, CancellationToken cancellationToken = default)
Parameters
recoveryCodestringRecovery code from the user's printed list.
cancellationTokenCancellationTokenPropagated to the underlying identity stack and any HTTP / DB calls.