Sha256: e1aa37130b73de210c505a8ca69d0b0759f8b6f6c1bd026ea16ea66eb2d68b22

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

require 'oauth2'

module OAuth2
  module Strategy
    class Application < AuthCode

      def get_token(params={}, opts={})

        params = {
          grant_type: 'authorization_code',
          headers: {
            'Accept' => 'application/json'
          }
        }.merge(client_params).merge(params)

        @client.get_token(params, opts)

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oauth2-application-1.0 lib/oauth2/strategy/application.rb