Sha256: 16589a364d103ed4b4ef5ecbceb4cfc8b23fb1eb02d4c2120e460acdd60eba6e

Contents?: true

Size: 498 Bytes

Versions: 7

Compression:

Stored size: 498 Bytes

Contents

module SparkApi
  module Authentication
    module OAuth2Impl
      class PasswordProvider < SparkApi::Authentication::BaseOAuth2Provider
        def initialize(credentials)
          super(credentials)
          @grant_type = :password
        end
        
        def load_session()
          @session
        end
      
        def save_session(session)
          @session = session
        end
      
        def destroy_session
          @session = nil
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spark_api-1.1.2 lib/spark_api/authentication/oauth2_impl/password_provider.rb
spark_api-1.1.1 lib/spark_api/authentication/oauth2_impl/password_provider.rb
spark_api-1.1.0 lib/spark_api/authentication/oauth2_impl/password_provider.rb
spark_api-1.0.4 lib/spark_api/authentication/oauth2_impl/password_provider.rb
spark_api-1.0.2 lib/spark_api/authentication/oauth2_impl/password_provider.rb
spark_api-1.0.1 lib/spark_api/authentication/oauth2_impl/password_provider.rb
spark_api-1.0.0 lib/spark_api/authentication/oauth2_impl/password_provider.rb