Class: Gruf::Interceptors::Authentication::Basic
- Inherits:
-
ServerInterceptor
- Object
- Base
- ServerInterceptor
- Gruf::Interceptors::Authentication::Basic
- Defined in:
- lib/gruf/interceptors/authentication/basic.rb
Overview
Handles basic authentication for gRPC requests
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#call ⇒ Object
Validate authentication.
Methods included from Errors::Helpers
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gruf::Interceptors::Base
Instance Method Details
#call ⇒ Object
Validate authentication
30 31 32 33 |
# File 'lib/gruf/interceptors/authentication/basic.rb', line 30 def call fail!(:unauthenticated, :unauthenticated) unless bypass? || valid? yield end |