Sha256: b66c7db6814c0def1cfb50afa51fc46507d9616bc1c558a3a07659b994a31e02

Contents?: true

Size: 656 Bytes

Versions: 4

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true

require 'oauth2'
require_relative './oauth_custom_flow'

module MicrosoftKiotaAuthenticationOAuth
    # Base class for token request contexs.
    class OAuthContext
      attr_accessor :scopes
      attr_reader :oauth_provider
      include MicrosoftKiotaAuthenticationOAuth::OAuthCustomFlow

      def get_token
        OAuthCustomFlow.get_token
      end

      def initialize_scopes(scopes = [])
        @scopes = OAuthCustomFlow.get_scopes
      end

      def initialize_oauth_provider
        @oauth_provider = OAuthCustomFlow.get_oauth_provider
      end

      private 

      attr_writer :oauth_provider

    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/contexts/oauth_context.rb
microsoft_kiota_authentication_oauth-0.7.0 lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb
microsoft_kiota_authentication_oauth-0.6.0 lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb
microsoft_kiota_authentication_oauth-0.5.0 lib/microsoft_kiota_authentication_oauth/contexts/oauth_context.rb