Class: ApiWarden::Authentication::HeaderParams
- Inherits:
-
Params
- Object
- Params
- ApiWarden::Authentication::HeaderParams
show all
- Defined in:
- lib/api_warden/authentication/header_params.rb
Instance Attribute Summary
Attributes inherited from Params
#authentication
Instance Method Summary
collapse
Methods inherited from Params
#initialize, #request, #scope
Instance Method Details
7
8
9
|
# File 'lib/api_warden/authentication/header_params.rb', line 7
def
request.
end
|
#retrieve_access_token ⇒ Object
15
16
17
|
# File 'lib/api_warden/authentication/header_params.rb', line 15
def retrieve_access_token
@access_token ||= ["X-#{scope.name.camelize}-Access-Token"]
end
|
#retrieve_id ⇒ Object
11
12
13
|
# File 'lib/api_warden/authentication/header_params.rb', line 11
def retrieve_id
@id ||= ["X-#{scope.name.camelize}-Id"]
end
|
#retrieve_refresh_token ⇒ Object
19
20
21
|
# File 'lib/api_warden/authentication/header_params.rb', line 19
def retrieve_refresh_token
@refresh_token ||= ["X-#{scope.name.camelize}-Refresh-Token"]
end
|