Sha256: 7fa09c604215e44c707aef84b43a394df1e03d861bd473ea0d7a9938efdac5e4

Contents?: true

Size: 799 Bytes

Versions: 5

Compression:

Stored size: 799 Bytes

Contents

require 'adp/connection_configuration'

module Adp
  module Connection

    class AuthorizationCodeConfiguration < ConnectionConfiguration

      attr_accessor :authorizationCode
      attr_accessor :baseAuthorizationURL
      attr_accessor :redirectURL
      attr_accessor :responseType
      attr_accessor :scope
      attr_accessor :state


      def initialize( config )

          super

          self.authorizationCode = config["authorizationCode"]
          self.baseAuthorizationURL = config["baseAuthorizationURL"]
          self.redirectURL = config["redirectURL"]
          self.responseType = config["responseType"]
          self.scope = config["scope"]
          self.state = config["state"]

          self.grantType = "authorization_code"

          self
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adp-connection-0.1.5 lib/adp/authorization_code_configuration.rb
adp-connection-0.1.4 lib/adp/authorization_code_configuration.rb
adp-connection-0.1.3 lib/adp/authorization_code_configuration.rb
adp-connection-0.1.2 lib/adp/authorization_code_configuration.rb
adp-connection-0.1.1 lib/adp/authorization_code_configuration.rb