Class: OmniAuth::Strategies::Edlink
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Edlink
- Defined in:
- lib/omniauth/strategies/edlink.rb
Defined Under Namespace
Classes: AccessToken
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
35 36 37 38 39 40 |
# File 'lib/omniauth/strategies/edlink.rb', line 35 def super.tap do |params| params[:scope] = [:email, :profile] params[:response_type] = :code end end |
#raw_info ⇒ Object
50 51 52 |
# File 'lib/omniauth/strategies/edlink.rb', line 50 def raw_info @raw_info ||= access_token.get('https://ed.link/api/v2/my/profile').parsed['$data'] end |
#request_phase ⇒ Object
29 30 31 32 33 |
# File 'lib/omniauth/strategies/edlink.rb', line 29 def request_phase integration_id = request.params['integration_id'] = integration_id.present? ? (integration_id) : .. redirect client.connection.build_url(URI.join(..site, ), ) end |