Sha256: 49e3e6fe598c8e55d60055c569985f316a1835d7eb2d2c3b0de8949759a8bcfa
Contents?: true
Size: 930 Bytes
Versions: 18
Compression:
Stored size: 930 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
18 entries across 18 versions & 1 rubygems