Class: Otto::Security::Authentication::AuthStrategy
- Inherits:
-
Object
- Object
- Otto::Security::Authentication::AuthStrategy
- Defined in:
- lib/otto/security/authentication/auth_strategy.rb
Overview
Base class for all authentication strategies
Direct Known Subclasses
Strategies::APIKeyStrategy, Strategies::NoAuthStrategy, Strategies::PermissionStrategy, Strategies::RoleStrategy, Strategies::SessionStrategy
Instance Method Summary collapse
-
#authenticate(env, requirement) ⇒ Otto::Security::Authentication::StrategyResult, Otto::Security::Authentication::AuthFailure
Check if the request meets the authentication requirements.
Instance Method Details
#authenticate(env, requirement) ⇒ Otto::Security::Authentication::StrategyResult, Otto::Security::Authentication::AuthFailure
Check if the request meets the authentication requirements
19 20 21 |
# File 'lib/otto/security/authentication/auth_strategy.rb', line 19 def authenticate(env, requirement) raise NotImplementedError, 'Subclasses must implement #authenticate' end |