Skip to content

Instantly share code, notes, and snippets.

@nov nov/yconnect_discovery.rb
Last active May 17, 2017

Embed
What would you like to do?
require 'openid_connect'
# NOTE: Webfinger
OpenIDConnect::Discovery::Provider.discover! 'https://auth.login.yahoo.co.jp'
# => raise OpenIDConnect::Discovery::DiscoveryFailed exception saying "Not Found"
# NOTE: OIDC OP Config (v2)
OpenIDConnect::Discovery::Provider::Config.discover! 'https://auth.login.yahoo.co.jp/yconnect/v2'
# => success
# NOTE: OIDC OP Config (v1)
OpenIDConnect::Discovery::Provider::Config.discover! 'https://auth.login.yahoo.co.jp/yconnect/v1'
# => raise OpenIDConnect::Discovery::DiscoveryFailed exception saying "Jwks uri can't be blank and Issuer mismatch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.