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

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

Direct Known Subclasses

Bearer::Request, MAC::Request

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Request) initialize(env)



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

- (Object) access_token (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

- (Boolean) oauth2?



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

def oauth2?
  raise 'Define me!'
end

- (Object) setup!



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

def setup!
  raise 'Define me!'
end