Class: Vauth::AuthorizationCodeGrant

Inherits:
Object
  • Object
show all
Defined in:
lib/vauth/authorization_code_grant.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(request, code, state) ⇒ AuthorizationCodeGrant

Returns a new instance of AuthorizationCodeGrant.



8
9
10
11
12
13
# File 'lib/vauth/authorization_code_grant.rb', line 8

def initialize(request, code, state)
  @request = request
  @code = code

  verify_state!(request.state, state)
end

Instance Method Details

#identity_tokenObject



15
16
17
# File 'lib/vauth/authorization_code_grant.rb', line 15

def identity_token
  ::Vauth::IdentityToken.new(parsed_response["id_token"])
end