Class: ApiWarden::Authentication::Params

Inherits:
Object
  • Object
show all
Defined in:
lib/api_warden/authentication/params.rb

Direct Known Subclasses

HeaderParams

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authentication) ⇒ Params

Returns a new instance of Params.



8
9
10
# File 'lib/api_warden/authentication/params.rb', line 8

def initialize(authentication)
  @authentication = authentication
end

Instance Attribute Details

#authenticationObject (readonly)

Returns the value of attribute authentication.



6
7
8
# File 'lib/api_warden/authentication/params.rb', line 6

def authentication
  @authentication
end

Instance Method Details

#requestObject



16
17
18
# File 'lib/api_warden/authentication/params.rb', line 16

def request
  authentication.request
end

#retrieve_access_tokenObject

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/api_warden/authentication/params.rb', line 24

def retrieve_access_token
  raise NotImplementedError
end

#retrieve_idObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/api_warden/authentication/params.rb', line 20

def retrieve_id
  raise NotImplementedError
end

#retrieve_refresh_tokenObject

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/api_warden/authentication/params.rb', line 28

def retrieve_refresh_token
  raise NotImplementedError
end

#scopeObject



12
13
14
# File 'lib/api_warden/authentication/params.rb', line 12

def scope
  authentication.scope
end