Class AuthBasicService

Inheritance Relationships

Base Type

Class Documentation

class AuthBasicService : public axr::sdk::ServiceBase<AuthToken>

Public Functions

inline AuthBasicService(std::shared_ptr<Configuration> config, std::shared_ptr<net::IApiClient> apiClient)
inline ~AuthBasicService()
pplx::task<std::shared_ptr<AuthToken>> Authenticate(const utility::char_t *username, const utility::char_t *password)

Retrieves an authorization token using a given username and password.

Parameters
  • username – The unique name of the user to authenticate with.

  • password – The password secret of the user to authenticate with.

Returns

A task whose result is the authentication token.

pplx::task<std::shared_ptr<AuthToken>> Authenticate(const utility::string_t &username, const utility::string_t &password)

Retrieves an authorization token using a given username and password.

Parameters
  • username – The unique name of the user to authenticate with.

  • password – The password secret of the user to authenticate with.

Returns

A task whose result is the authentication token.

Public Static Functions

static inline const utility::char_t *ClassName()

Returns the fully qualified name of the class.