Sha256: 98a2cacae9f8b21cde1d6397280559d14b30bbc4621554e95c9cb414b8eb5fa3
Contents?: true
Size: 1.88 KB
Versions: 6
Compression:
Stored size: 1.88 KB
Contents
require 'json' require 'logger' require 'swd' require 'active_model' require 'tzinfo' require 'validate_url' require 'validate_email' require 'attr_required' require 'attr_optional' require 'rack/oauth2' require 'rack/oauth2/server/authorize/request_with_connect_params' require 'rack/oauth2/server/id_token_response' require 'rack/oauth2/server/resource/error_with_connect_ext' module OpenIDConnect VERSION = ::File.read( ::File.join(::File.dirname(__FILE__), '../VERSION') ) def self.logger @@logger end def self.logger=(logger) @@logger = logger end self.logger = Logger.new(STDOUT) self.logger.progname = 'OpenIDConnect' def self.debugging? @@debugging end def self.debugging=(boolean) SWD.debugging = boolean Rack::OAuth2.debugging = boolean @@debugging = boolean end def self.debug! SWD.debug! Rack::OAuth2.debug! self.debugging = true end def self.debug(&block) swd_original = SWD.debugging? rack_oauth2_original = Rack::OAuth2.debugging? original = self.debugging? debug! yield ensure SWD.debugging = swd_original Rack::OAuth2.debugging = rack_oauth2_original self.debugging = original end self.debugging = false def self.http_client _http_client_ = HTTPClient.new( agent_name: "OpenIDConnect (#{VERSION})" ) _http_client_.request_filter << Debugger::RequestFilter.new if debugging? http_config.try(:call, _http_client_) _http_client_ end def self.http_config(&block) SWD.http_config &block unless SWD.http_config Rack::OAuth2.http_config &block unless Rack::OAuth2.http_config @@http_config ||= block end end require 'openid_connect/exception' require 'openid_connect/client' require 'openid_connect/access_token' require 'openid_connect/jwtnizable' require 'openid_connect/connect_object' require 'openid_connect/discovery' require 'openid_connect/debugger'
Version data entries
6 entries across 6 versions & 1 rubygems