Class: GrapeDeviseTokenAuth::Configuration
- Inherits:
-
Object
- Object
- GrapeDeviseTokenAuth::Configuration
- Defined in:
- lib/grape_devise_token_auth/configuration.rb
Constant Summary collapse
- ACCESS_TOKEN_KEY =
'HTTP_ACCESS_TOKEN'- EXPIRY_KEY =
'HTTP_EXPIRY'- UID_KEY =
'HTTP_UID'- CLIENT_KEY =
'HTTP_CLIENT'
Instance Attribute Summary collapse
-
#authenticate_all ⇒ Object
Returns the value of attribute authenticate_all.
-
#batch_request_buffer_throttle ⇒ Object
Returns the value of attribute batch_request_buffer_throttle.
-
#change_headers_on_each_request ⇒ Object
Returns the value of attribute change_headers_on_each_request.
Instance Method Summary collapse
- #auth_all? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 |
# File 'lib/grape_devise_token_auth/configuration.rb', line 9 def initialize @batch_request_buffer_throttle ||= DeviseTokenAuth.batch_request_buffer_throttle @change_headers_on_each_request ||= DeviseTokenAuth.change_headers_on_each_request @authenticate_all = false end |
Instance Attribute Details
#authenticate_all ⇒ Object
Returns the value of attribute authenticate_all.
3 4 5 |
# File 'lib/grape_devise_token_auth/configuration.rb', line 3 def authenticate_all @authenticate_all end |
#batch_request_buffer_throttle ⇒ Object
Returns the value of attribute batch_request_buffer_throttle.
3 4 5 |
# File 'lib/grape_devise_token_auth/configuration.rb', line 3 def batch_request_buffer_throttle @batch_request_buffer_throttle end |
#change_headers_on_each_request ⇒ Object
Returns the value of attribute change_headers_on_each_request.
3 4 5 |
# File 'lib/grape_devise_token_auth/configuration.rb', line 3 def change_headers_on_each_request @change_headers_on_each_request end |
Instance Method Details
#auth_all? ⇒ Boolean
15 16 17 |
# File 'lib/grape_devise_token_auth/configuration.rb', line 15 def auth_all? @authenticate_all end |