Class: A2A::Plugin::AuthPlugin
Overview
Authentication plugin interface
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#authenticate_request(request, **options) ⇒ Hash
Authenticate a request (must be implemented by subclasses).
-
#validate_credentials(_credentials) ⇒ Boolean
Validate authentication (optional).
Methods inherited from Base
#cleanup, dependencies, depends_on, inherited, #initialize, plugin_type, #register_hooks
Constructor Details
This class inherits a constructor from A2A::Plugin::Base
Instance Method Details
#authenticate_request(request, **options) ⇒ Hash
Authenticate a request (must be implemented by subclasses)
292 293 294 |
# File 'lib/a2a/plugin.rb', line 292 def authenticate_request(request, **) raise NotImplementedError, "Auth plugins must implement #authenticate_request" end |
#validate_credentials(_credentials) ⇒ Boolean
Validate authentication (optional)
299 300 301 |
# File 'lib/a2a/plugin.rb', line 299 def validate_credentials(_credentials) true end |