Skip to main content

IAuthenticationUtility

An interface in Alta.Authentication, Alta.Authentication.

Ways to log in to the Alta web API: saved refresh token, command line, username and password, or OAuth client credentials. AuthenticationUtility implements it.

Methods​

MemberWhat it is
Task<IResult<bool>> LoginWithCommandLineArgumentsAsync()Logs in from /login, /login_hash, /access_token or /oauth_login arguments; the bool is false when none were given.
Task<IResult> LoginWithCommandLineTokensAsync()Logs in with the /access_token, /refresh_token and /identity_token command line arguments.
Task<IResult> LoginWithOAuthAsync(string clientId, string clientSecret, string clientScopes)Logs in as an OAuth client with a client ID, secret and scopes.
Task<IResult> LoginWithRefreshTokenAsync()Logs in with the refresh token saved in login preferences, if the user chose to remember details.
Task<IResult> LoginWithUserPassAsync(string username, string password)Hashes the password and logs in with the username and hash.

Used in​

Members of other types that take, return or hold a IAuthenticationUtility: