Class: ClientAuth::Authenticator
- Inherits:
-
Object
- Object
- ClientAuth::Authenticator
- Defined in:
- lib/client_auth/authenticator.rb
Constant Summary collapse
- EXPIRATION =
10.minutes
- DELIMITER =
':'.freeze
Instance Method Summary collapse
- #authenticate! ⇒ Object
-
#initialize(request, public_key) ⇒ Authenticator
constructor
A new instance of Authenticator.
Constructor Details
#initialize(request, public_key) ⇒ Authenticator
Returns a new instance of Authenticator.
6 7 8 9 |
# File 'lib/client_auth/authenticator.rb', line 6 def initialize(request, public_key) @request = request @public_key = public_key end |
Instance Method Details
#authenticate! ⇒ Object
11 12 13 14 15 16 |
# File 'lib/client_auth/authenticator.rb', line 11 def authenticate! validate_client_name! validate_signature! true end |