Class: Tasker::Types::AuthConfig
- Inherits:
-
BaseConfig
- Object
- Dry::Struct
- BaseConfig
- Tasker::Types::AuthConfig
- Defined in:
- lib/tasker/types/auth_config.rb
Overview
Configuration type for authentication and authorization settings
This configuration handles all authentication and authorization settings for Tasker. It provides the same functionality as the original AuthConfiguration but with dry-struct type safety and immutability.
Instance Attribute Summary collapse
-
#authenticate_user_method ⇒ Symbol
readonly
Method name to authenticate the user.
-
#authentication_enabled ⇒ Boolean
readonly
Whether authentication is enabled.
-
#authenticator_class ⇒ String?
readonly
Class name for the authenticator.
-
#authorization_coordinator_class ⇒ String
readonly
Class name for the authorization coordinator.
-
#authorization_enabled ⇒ Boolean
readonly
Whether authorization is enabled.
-
#current_user_method ⇒ Symbol
readonly
Method name to get the current user.
-
#strategy ⇒ Symbol
readonly
Authentication strategy.
-
#user_class ⇒ String?
readonly
Class name for the authorizable user class.
Method Summary
Methods inherited from BaseConfig
Constructor Details
This class inherits a constructor from Tasker::Types::BaseConfig
Instance Attribute Details
#authenticate_user_method ⇒ Symbol (readonly)
Returns Method name to authenticate the user.
54 |
# File 'lib/tasker/types/auth_config.rb', line 54 attribute :authenticate_user_method, Types::Symbol.default(:authenticate_user!) |
#authentication_enabled ⇒ Boolean (readonly)
Returns Whether authentication is enabled.
36 |
# File 'lib/tasker/types/auth_config.rb', line 36 attribute :authentication_enabled, Types::Bool.default(false) |
#authenticator_class ⇒ String? (readonly)
Returns Class name for the authenticator.
42 |
# File 'lib/tasker/types/auth_config.rb', line 42 attribute? :authenticator_class, Types::String.optional.default(nil) |
#authorization_coordinator_class ⇒ String (readonly)
Returns Class name for the authorization coordinator.
66 |
# File 'lib/tasker/types/auth_config.rb', line 66 attribute :authorization_coordinator_class, Types::String.default('Tasker::Authorization::BaseCoordinator') |
#authorization_enabled ⇒ Boolean (readonly)
Returns Whether authorization is enabled.
60 |
# File 'lib/tasker/types/auth_config.rb', line 60 attribute :authorization_enabled, Types::Bool.default(false) |
#current_user_method ⇒ Symbol (readonly)
Returns Method name to get the current user.
48 |
# File 'lib/tasker/types/auth_config.rb', line 48 attribute :current_user_method, Types::Symbol.default(:current_user) |
#strategy ⇒ Symbol (readonly)
Returns Authentication strategy.
78 |
# File 'lib/tasker/types/auth_config.rb', line 78 attribute :strategy, Types::Symbol.default(:none) |
#user_class ⇒ String? (readonly)
Returns Class name for the authorizable user class.
72 |
# File 'lib/tasker/types/auth_config.rb', line 72 attribute? :user_class, Types::String.optional.default(nil) |