Class: X::Authenticator
- Inherits:
-
Object
- Object
- X::Authenticator
- Defined in:
- lib/x/authenticator.rb
Overview
Base class for authentication
Direct Known Subclasses
BearerTokenAuthenticator, OAuth2Authenticator, OAuthAuthenticator
Constant Summary collapse
- AUTHENTICATION_HEADER =
The HTTP header name for authentication
"Authorization".freeze
Instance Method Summary collapse
-
#header(_request) ⇒ Hash{String => String}
Generate the authentication header for a request.
Instance Method Details
#header(_request) ⇒ Hash{String => String}
Generate the authentication header for a request
17 18 19 |
# File 'lib/x/authenticator.rb', line 17 def header(_request) {AUTHENTICATION_HEADER => ""} end |