Module: BambooId::Urls::BaseOauthTokenUrl

Included in:
OauthTokenUrl
Defined in:
lib/bamboo_id/urls/base_oauth_token_url.rb

Instance Method Summary collapse

Instance Method Details

#paramsObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/bamboo_id/urls/base_oauth_token_url.rb', line 8

def params
  {
    client_id:     client_id,
    client_secret: client_secret,
    grant_type:    grant_type,
    redirect_uri:  redirect_uri,
    scope:         scope
  }.tap do |parameters|
    parameters[refresh? ? :refresh_token : :code] = temporary_code
  end.select do |_key, value|
    value != nil && value != ''
  end
end

#to_sObject



4
5
6
# File 'lib/bamboo_id/urls/base_oauth_token_url.rb', line 4

def to_s
  base_url
end