Class: Doorkeeper::OAuth::IdTokenResponse

Inherits:
BaseResponse
  • Object
show all
Includes:
OAuth::Helpers
Defined in:
lib/doorkeeper/oauth/id_token_response.rb

Direct Known Subclasses

IdTokenTokenResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pre_auth, auth, id_token) ⇒ IdTokenResponse

Returns a new instance of IdTokenResponse.



8
9
10
11
12
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 8

def initialize(pre_auth, auth, id_token)
  @pre_auth = pre_auth
  @auth = auth
  @id_token = id_token
end

Instance Attribute Details

#authObject

Returns the value of attribute auth.



6
7
8
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 6

def auth
  @auth
end

#id_tokenObject

Returns the value of attribute id_token.



6
7
8
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 6

def id_token
  @id_token
end

#pre_authObject

Returns the value of attribute pre_auth.



6
7
8
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 6

def pre_auth
  @pre_auth
end

Instance Method Details

#redirect_uriObject



18
19
20
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 18

def redirect_uri
  Authorization::URIBuilder.uri_with_fragment(pre_auth.redirect_uri, redirect_uri_params)
end

#redirectable?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/doorkeeper/oauth/id_token_response.rb', line 14

def redirectable?
  true
end