Class: BambooId::Requests::AccessTokenRequest

Inherits:
Object
  • Object
show all
Includes:
BaseAccessTokenRequest
Defined in:
lib/bamboo_id/requests/access_token_request.rb

Instance Method Summary collapse

Methods included from BaseAccessTokenRequest

#access_token, #error, included, #refresh_token, #successful?

Constructor Details

#initialize(temporary_code:, subdomain:, grant_type: 'authorization_code') ⇒ AccessTokenRequest

Returns a new instance of AccessTokenRequest.



8
9
10
11
12
# File 'lib/bamboo_id/requests/access_token_request.rb', line 8

def initialize(temporary_code:, subdomain:, grant_type: 'authorization_code')
  self.temporary_code = temporary_code
  self.subdomain      = subdomain
  self.grant_type     = grant_type
end

Instance Method Details

#id_tokenObject



14
15
16
# File 'lib/bamboo_id/requests/access_token_request.rb', line 14

def id_token
  response.id_token
end