lib/omniauth/heart.rb
##
# Calls the authorization server to retrieve its endpoints and configuration
# settings.
#
# Returns:
#   +Hash+::              Hash of endpoints and settings for authorization server
Calls the authorization server to retrieve its endpoints and configuration
settings.

+Hash+::              Hash of endpoints and settings for authorization server
Calls the authorization server to retrieve its endpoints and configuration settings . + Hash + :: Hash of endpoints and settings for authorization server
def discover_config
        log :debug, "------ Calling #{config_endpoint} ------"
        response = auth_server.get("#{config_endpoint}")
        if OK == response.status
          JSON.parse(response.body)
        else
          raise "Could not get configuration from authorization server. #{response.inspect}"
        end
      end
def discover_config log :debug , "------ Calling #{config_endpoint} ------" response = auth_server . get ( "#{config_endpoint}" ) if OK == response . status JSON . parse ( response . body ) else raise "Could not get configuration from authorization server. #{response.inspect}" end end
Calls the authorization server to retrieve its endpoints and configuration
settings.
Calls the authorization server to retrieve its endpoints and configuration settings .