Class: Doorkeeper::Request::Assertion

Inherits:
Object
  • Object
show all
Defined in:
lib/doorkeeper/request/assertion.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server) ⇒ Assertion

Returns a new instance of Assertion.



12
13
14
# File 'lib/doorkeeper/request/assertion.rb', line 12

def initialize(server)
  @server = server
end

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



10
11
12
# File 'lib/doorkeeper/request/assertion.rb', line 10

def server
  @server
end

Class Method Details

.build(server) ⇒ Object



6
7
8
# File 'lib/doorkeeper/request/assertion.rb', line 6

def self.build(server)
  new(server)
end

Instance Method Details

#authorizeObject



20
21
22
# File 'lib/doorkeeper/request/assertion.rb', line 20

def authorize
  request.authorize
end

#requestObject



16
17
18
# File 'lib/doorkeeper/request/assertion.rb', line 16

def request
  @request ||= OAuth::AssertionAccessTokenRequest.new(server, Doorkeeper.configuration)
end