Sha256: d582a863aca6f9b7ce981a0d9bf634b0ce7bed371290fc94c1f8248d89724dfd
Contents?: true
Size: 822 Bytes
Versions: 1
Compression:
Stored size: 822 Bytes
Contents
require "rack/oauth2" require "retriable/no_kernel" require "shutl/network_retry" require "shutl/auth/version" require "shutl/auth/access_token_request" require "shutl/auth/authenticated_request" require "shutl/auth/authenticator" require 'logger' module Shutl class UnauthorizedAccess < ::StandardError ; end class Error < ::StandardError; end module Auth class InvalidUrl < Shutl::Error; end class InvalidCredentials < Shutl::Error; end class InternalServerError < Shutl::Error; end extend self attr_accessor :client_id, :client_secret, :url def config yield self end def logger return ::Rails.logger if Kernel.const_defined?(:Rails) return ::Shutl.logger if Shutl.respond_to? :logger Logger.new('/dev/null') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shutl_auth-0.9.0 | lib/shutl_auth.rb |