Class: OmniAuth::Strategies::Zendesk

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/zendesk.rb

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



14
15
16
17
18
19
20
# File 'lib/omniauth/strategies/zendesk.rb', line 14

def authorize_params
  super.tap do |params|
    if request.params['scope']
      params[:scope] = request.params[v]
    end
  end
end

#raw_infoObject



22
23
24
# File 'lib/omniauth/strategies/zendesk.rb', line 22

def raw_info
  @raw_info ||= access_token.get('/api/v2/users/me.json').parsed
end