Sha256: 12c267948f7d38ce060db8a3907d0d7ce037d6269e375151b06b6acef6133b86
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 Bytes
Contents
module Applicaster class Accounts class Configuration include Virtus.model # The base URL of the accounts service attribute :base_url, String, default: :default_base_url # OAuth2 provider client ID attribute :client_id, String, default: proc { ENV["ACCOUNTS_CLIENT_ID"] } # OAuth2 provider client secret attribute :client_secret, String, default: proc { ENV["ACCOUNTS_CLIENT_SECRET"] } # Number of times to retry safe requests attribute :retries, Integer, default: 2 # Number of seconds before a request will be timed out attribute :timeout, Float, default: 1 attribute :faraday_adapter, nil, default: :excon # Add the request_proc attribute attribute :request_proc, Proc, default: proc { nil } def default_base_url ENV["ACCOUNTS_BASE_URL"] || "https://accounts.applicaster.com/" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-applicaster-2.0.0 | lib/applicaster/accounts/configuration.rb |