Class: Rack::OAuth2::Server::Resource::Request

Inherits:
Request
  • Object
show all
Defined in:
lib/rack/oauth2/server/resource.rb

Direct Known Subclasses

Bearer::Request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Request

Returns a new instance of Request.



35
36
37
38
# File 'lib/rack/oauth2/server/resource.rb', line 35

def initialize(env)
  @env = env
  @auth_header = Rack::Auth::AbstractRequest.new(env)
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token.



33
34
35
# File 'lib/rack/oauth2/server/resource.rb', line 33

def access_token
  @access_token
end

Instance Method Details

#oauth2?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/rack/oauth2/server/resource.rb', line 44

def oauth2?
  raise 'Define me!'
end

#setup!Object



40
41
42
# File 'lib/rack/oauth2/server/resource.rb', line 40

def setup!
  raise 'Define me!'
end