Class: Zitadel::Client::Auth::PersonalAccessTokenAuthenticator

Inherits:
Authenticator
  • Object
show all
Defined in:
lib/zitadel/client/auth/personal_access_token_authenticator.rb

Overview

Personal Access Token Authenticator.

Uses a static personal access token for API authentication.

Instance Method Summary collapse

Constructor Details

#initialize(host, token) ⇒ PersonalAccessTokenAuthenticator

Initializes the PersonalAccessTokenAuthenticator with host and token.

Parameters:

  • host (String)

    the base URL for the service.

  • token (String)

    the personal access token.



18
19
20
21
22
# File 'lib/zitadel/client/auth/personal_access_token_authenticator.rb', line 18

def initialize(host, token)
  # noinspection RubyArgCount
  super(Utils::UrlUtil.build_hostname(host))
  @token = token
end