lib/omniauth/strategies/azure_activedirectory.rb
##
# Fetches the current signing keys for Azure AD. Note that there should
# always two available, and that they have a 6 week rollover.
#
# Each key is a hash with the following fields:
#   kty, use, kid, x5t, n, e, x5c
#
# @return Array[Hash]
Fetches the current signing keys for Azure AD. Note that there should
always two available, and that they have a 6 week rollover.

Each key is a hash with the following fields:
kty, use, kid, x5t, n, e, x5c
Fetches the current signing keys for Azure AD . Note that there should always two available and that they have a 6 week rollover . Each key is a hash with the following fields : kty use kid x5t n e x5c
def fetch_signing_keys
        response = JSON.parse(Net::HTTP.get(URI(signing_keys_url)))
        response['keys']
      rescue JSON::ParserError
        raise StandardError, 'Unable to fetch AzureAD signing keys.'
      end
def fetch_signing_keys response = JSON . parse ( Net :: HTTP . get ( URI ( signing_keys_url ) ) ) response [ 'keys' ] rescue JSON :: ParserError raise StandardError , 'Unable to fetch AzureAD signing keys.' end
Fetches the current signing keys for Azure AD.
Fetches the current signing keys for Azure AD .
None
Hash