Sha256: d408e0afc60d657303c352aafa72ef53afb50e106c9e697429bb747bd2f95582

Contents?: true

Size: 563 Bytes

Versions: 8

Compression:

Stored size: 563 Bytes

Contents

module OpenIDConnect
  module Discovery
    module Provider
      class Config
        def self.discover!(identifier, cache_options = {})
          uri = URI.parse(identifier)
          Resource.new(uri).discover!(cache_options).tap do |response|
            response.validate! identifier
          end
        rescue SWD::Exception, ValidationFailed => e
          raise DiscoveryFailed.new(e.message)
        end
      end
    end
  end
end

require 'openid_connect/discovery/provider/config/resource'
require 'openid_connect/discovery/provider/config/response'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
openid_connect-1.0.2 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.0.1 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.0.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-0.12.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-0.11.2 lib/openid_connect/discovery/provider/config.rb
openid_connect-0.11.1 lib/openid_connect/discovery/provider/config.rb
openid_connect-0.11.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-0.10.0 lib/openid_connect/discovery/provider/config.rb