Sha256: b98f90914613c4e9b544c2c8f92e8bec7a17260c1b3645d43b0d2e10ce2a6bf7

Contents?: true

Size: 810 Bytes

Versions: 14

Compression:

Stored size: 810 Bytes

Contents

module GDS
  module SSO
    module Config
      # Name of the User class
      mattr_accessor :user_model
      @@user_model = "User"

      # OAuth ID
      mattr_accessor :oauth_id

      # OAuth Secret
      mattr_accessor :oauth_secret

      # Location of the OAuth server
      mattr_accessor :oauth_root_url
      @@oauth_root_url = "http://localhost:3001"

      # Basic Auth Credentials (for api access when request accept
      # header is application/json)
      mattr_accessor :basic_auth_user
      mattr_accessor :basic_auth_password
      mattr_accessor :basic_auth_realm

      # default_scope, usually the app, e.g. Publisher
      mattr_accessor :default_scope

      @@basic_auth_realm = "API Access"

      def self.user_klass
        user_model.to_s.constantize
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gds-sso-1.1.1 lib/gds-sso/config.rb
gds-sso-1.1.0 lib/gds-sso/config.rb
gds-sso-1.0.0 lib/gds-sso/config.rb
gds-sso-0.8.0 lib/gds-sso/config.rb
gds-sso-0.7.9 lib/gds-sso/config.rb
gds-sso-0.7.8 lib/gds-sso/config.rb
gds-sso-0.7.7 lib/gds-sso/config.rb
gds-sso-0.7.6 lib/gds-sso/config.rb
gds-sso-0.7.5 lib/gds-sso/config.rb
gds-sso-0.7.4 lib/gds-sso/config.rb
gds-sso-0.7.3 lib/gds-sso/config.rb
gds-sso-0.7.2 lib/gds-sso/config.rb
gds-sso-0.7.1 lib/gds-sso/config.rb
gds-sso-0.7.0 lib/gds-sso/config.rb