Interface IMsalTokenAcquisition
- Namespace
- OneImlx.Terminal.Authentication.Msal
- Assembly
- OneImlx.Terminal.Authentication.dll
An abstraction to acquire tokens using MSAL.
public interface IMsalTokenAcquisition
Methods
AcquireTokenInteractiveAsync(IEnumerable<string>)
Acquires a token interactively for the specified scopes.
Task<AuthenticationResult> AcquireTokenInteractiveAsync(IEnumerable<string> scopes)
Parameters
scopes
IEnumerable<string>The scopes for which the token is requested.
Returns
- Task<AuthenticationResult>
A task that represents the asynchronous operation and returns the authentication result.
AcquireTokenSilentAsync(IEnumerable<string>, IAccount)
Acquires a token silently for the specified scopes and account.
Task<AuthenticationResult> AcquireTokenSilentAsync(IEnumerable<string> scopes, IAccount account)
Parameters
scopes
IEnumerable<string>The scopes for which the token is requested.
account
IAccountThe account for which the token is requested.
Returns
- Task<AuthenticationResult>
A task that represents the asynchronous operation and returns the authentication result.
GetAccountsAsync(string?)
Asynchronously gets a list of IAccount.
Task<IEnumerable<IAccount>> GetAccountsAsync(string? userFlow = null)
Parameters
userFlow
stringThe authentication user flow.
Returns
- Task<IEnumerable<IAccount>>
A task that represents the asynchronous operation, containing a list of accounts.