Class: Zitadel::Client::Auth::PersonalAccessTokenAuthenticator
- Inherits:
-
Authenticator
- Object
- Authenticator
- Zitadel::Client::Auth::PersonalAccessTokenAuthenticator
- 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
-
#initialize(host, token) ⇒ PersonalAccessTokenAuthenticator
constructor
Initializes the PersonalAccessTokenAuthenticator with host and token.
Constructor Details
#initialize(host, token) ⇒ PersonalAccessTokenAuthenticator
Initializes the PersonalAccessTokenAuthenticator with host and 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 |