Sha256: 0ccbfe8543b61b55e402dec835accdbdbbe8199fc13f789748373926093ae009
Contents?: true
Size: 929 Bytes
Versions: 12
Compression:
Stored size: 929 Bytes
Contents
module OpenIDConnect module Discovery module Provider class Config class Resource < SWD::Resource undef_required_attributes :principal, :service class Expired < SWD::Resource::Expired; end def initialize(uri) @host = uri.host @port = uri.port unless [80, 443].include?(uri.port) @path = File.join uri.path, '.well-known/openid-configuration' attr_missing! end def endpoint SWD.url_builder.build [nil, host, port, path, nil, nil] rescue URI::Error => e raise SWD::Exception.new(e.message) end private def to_response_object(hash) Response.new hash end def cache_key md5 = Digest::MD5.hexdigest host "swd:resource:opneid-conf:#{md5}" end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems