Skip to content

Instantly share code, notes, and snippets.

@nov
Last active May 17, 2017 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nov/15a835b975369b45a4d7cb7c73fef853 to your computer and use it in GitHub Desktop.
Save nov/15a835b975369b45a4d7cb7c73fef853 to your computer and use it in GitHub Desktop.
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