lib/omniauth/heart.rb
def auth_server
        @auth_server ||= Faraday.new(client_options.auth_server_uri, 
                                          :ssl => {:verify => false}) do |builder|
          builder.request   :url_encoded    # Encode request parameters as "www-form-urlencoded"
          builder.response  :logger         # Log request and response to STDOUT
          builder.adapter   :net_http       # Perform requests with Net::HTTP
        end
      end
##
# Establish a connection object that will be reused during communication 
# with the authorization server.  The connection is cached in an instance
# variable.
Establish a connection object that will be reused during communication
with the authorization server.  The connection is cached in an instance
variable.
Establish a connection object that will be reused during communication with the authorization server . The connection is cached in an instance variable .
def auth_server
        @auth_server ||= Faraday.new(client_options.auth_server_uri, 
                                          :ssl => {:verify => false}) do |builder|
          builder.request   :url_encoded    
          builder.response  :logger         
          builder.adapter   :net_http       
        end
      end
def auth_server @auth_server ||= Faraday . new ( client_options . auth_server_uri , :ssl => { :verify => false } ) do | builder | builder . request :url_encoded builder . response :logger builder . adapter :net_http end end
Establish a connection object that will be reused during communication
with the authorization server.
Establish a connection object that will be reused during communication with the authorization server .
# Encode request parameters as "www-form-urlencoded" # Log request and response to STDOUT # Perform requests with Net::HTTP