Class: ResoWebApi::Authentication::SimpleTokenAuth
- Inherits:
-
AuthStrategy
- Object
- BaseClient
- AuthStrategy
- ResoWebApi::Authentication::SimpleTokenAuth
- Defined in:
- lib/reso_web_api/authentication/simple_token_auth.rb
Overview
A simple auth strategy that uses a static, non-expiring token.
Constant Summary
Constants inherited from BaseClient
Instance Attribute Summary
Attributes inherited from AuthStrategy
Instance Method Summary collapse
-
#authenticate ⇒ Access
Simply returns a static, never expiring access token.
Methods inherited from AuthStrategy
Methods inherited from BaseClient
Instance Method Details
#authenticate ⇒ Access
Simply returns a static, never expiring access token
14 15 16 17 18 19 20 |
# File 'lib/reso_web_api/authentication/simple_token_auth.rb', line 14 def authenticate Access.new( 'access_token' => access_token, 'token_type' => token_type, 'expires_in' => 1 << (1.size * 8 - 2) - 1 # Max int value ) end |