Sha256: d6e9be6c632178816b9aeb6736e0aa88383e0124e6cfe145c01adb95e0fd9e20

Contents?: true

Size: 602 Bytes

Versions: 23

Compression:

Stored size: 602 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.expected_issuer = identifier
            response.validate!
          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

23 entries across 23 versions & 1 rubygems

Version Path
openid_connect-2.3.1 lib/openid_connect/discovery/provider/config.rb
openid_connect-2.3.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-2.2.1 lib/openid_connect/discovery/provider/config.rb
openid_connect-2.2.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-2.1.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-2.0.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-2.0.0.rc1 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.4.2 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.4.1 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.4.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.3.1 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.3.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.2.0 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.1.8 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.1.7 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.1.6 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.1.5 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.1.4 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.1.3 lib/openid_connect/discovery/provider/config.rb
openid_connect-1.1.2 lib/openid_connect/discovery/provider/config.rb