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
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
26 27 28 29 |
# File 'lib/gruf/interceptors/authentication/basic.rb', line 26 def call fail!(:unauthenticated, :unauthenticated) unless bypass? || valid? yield end |