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.



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

def initialize(server)
	@server = server
end

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



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

def server
  @server
end

Class Method Details

.build(server) ⇒ Object



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

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

Instance Method Details

#authorizeObject



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

def authorize
	request.authorize
end

#requestObject



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

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