Sha256: 0078709a0250fe121dba040cf91795288827a79db18598d801aaaaf4869e6854

Contents?: true

Size: 431 Bytes

Versions: 4

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

require 'oauth2'

# Extension of Oauth2 Library to Include On Behalf Of Grant Type
module OAuth2
  module Strategy
    class OnBehalfOf < Base 
      def get_token(params, response_opts = {})
        @client.get_token(params, response_opts)
      end
    end
  end
end

module OAuth2
  class Client
    def on_behalf_of
      @on_behalf_of ||= OAuth2::Strategy::OnBehalfOf.new(self)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
microsoft_kiota_authentication_oauth-0.8.0 lib/microsoft_kiota_authentication_oauth/extensions/oauth2_ext.rb
microsoft_kiota_authentication_oauth-0.7.0 lib/microsoft_kiota_authentication_oauth/extensions/oauth2_ext.rb
microsoft_kiota_authentication_oauth-0.6.0 lib/microsoft_kiota_authentication_oauth/extensions/oauth2_ext.rb
microsoft_kiota_authentication_oauth-0.5.0 lib/microsoft_kiota_authentication_oauth/extensions/oauth2_ext.rb