Class: Authentik::Client::Configuration
- Inherits:
-
Api::Configuration
- Object
- Api::Configuration
- Authentik::Client::Configuration
- Defined in:
- lib/authentik/client/configuration.rb
Overview
Global configuration for Authentik::Client. Subclasses Api::Configuration so all underlying API settings (e.g., verify_ssl, timeout, debugging) are available directly. Adds a token accessor as a friendlier alias for access_token.
Use configure to set configuration at startup.
Instance Attribute Summary collapse
-
#logger ⇒ Object
writeonly
Sets the attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#token ⇒ String?
The API bearer token for authentication.
- #token=(value) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 24 25 26 |
# File 'lib/authentik/client/configuration.rb', line 20 def initialize super # Override parent defaults: host is intentionally nil until the user # sets it, so Client can detect when it has not been configured. @host = nil @scheme = "https" end |
Instance Attribute Details
#logger=(value) ⇒ Object (writeonly)
Sets the attribute logger
18 19 20 |
# File 'lib/authentik/client/configuration.rb', line 18 def logger=(value) @logger = value end |
Instance Method Details
#token ⇒ String?
Returns The API bearer token for authentication. Alias for access_token.
29 30 31 |
# File 'lib/authentik/client/configuration.rb', line 29 def token access_token end |
#token=(value) ⇒ Object
34 35 36 |
# File 'lib/authentik/client/configuration.rb', line 34 def token=(value) self.access_token = value end |