Class: Foobara::AuthHttp::MoveRefreshTokenToCookie
- Inherits:
-
CommandConnectors::Http::MoveAttributeToCookie
- Object
- Value::Processor
- Value::Mutator
- CommandConnectors::ResponseMutator
- CommandConnectors::Http::MoveAttributeToCookie
- Foobara::AuthHttp::MoveRefreshTokenToCookie
- Defined in:
- foobara-auth-http-0.0.7/src/foobara/auth_http/move_refresh_token_to_cookie.rb
Instance Attribute Summary
Attributes inherited from CommandConnectors::Http::MoveAttributeToCookie
#attribute_name, #cookie_name, #cookie_opts
Attributes inherited from Value::Processor
#created_in_namespace, #declaration_data, #parent_declaration_data
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attribute_name = :refresh_token, cookie_name = attribute_name, **cookie_opts) ⇒ MoveRefreshTokenToCookie
constructor
A new instance of MoveRefreshTokenToCookie.
Methods inherited from CommandConnectors::Http::MoveAttributeToCookie
#applicable?, for, #mutate, #result_type_from
Methods inherited from CommandConnectors::ResponseMutator
#mutate, #result_type_declaration_from, #result_type_from
Methods inherited from Value::Mutator
error_classes, foobara_manifest, #mutate, #process_value
Methods inherited from Value::Processor
#always_applicable?, #applicable?, #attribute_name, #build_error, default_declaration_data, #dup_processor, error_class, error_classes, #error_context, #error_message, #error_path, foobara_manifest, #foobara_manifest, #inspect, instance, #method_missing, #name, new_with_agnostic_args, #possible_errors, #priority, #process_outcome, #process_outcome!, #process_value, #process_value!, processor_name, requires_parent_declaration_data?, #respond_to_missing?, #runner, symbol
Methods included from IsManifestable
#foobara_domain, #foobara_manifest, #foobara_organization, #scoped_clear_caches
Methods included from Concern
foobara_class_methods_module_for, foobara_concern?, included
Constructor Details
#initialize(attribute_name = :refresh_token, cookie_name = attribute_name, **cookie_opts) ⇒ MoveRefreshTokenToCookie
Returns a new instance of MoveRefreshTokenToCookie.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'foobara-auth-http-0.0.7/src/foobara/auth_http/move_refresh_token_to_cookie.rb', line 11 def initialize(attribute_name = :refresh_token, = attribute_name, **) super() self.attribute_name = attribute_name.to_sym self. = .to_s self. = { httponly: true, path: "/run/Foobara/Auth/", secure: ENV["FOOBARA_ENV"] != "development" && ENV["FOOBARA_ENV"] != "test", same_site: :strict }.merge() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Foobara::Value::Processor
Class Method Details
.requires_declaration_data? ⇒ Boolean
6 7 8 |
# File 'foobara-auth-http-0.0.7/src/foobara/auth_http/move_refresh_token_to_cookie.rb', line 6 def requires_declaration_data? false end |