lib/sk_sdk/omni_auth/salesking.rb
def user_info
        {
          'email' => (user_data["email"] if user_data["email"]),
          'first_name' => user_data["first_name"],
          'last_name' => user_data["last_name"],
          'name' => "#{user_data['first_name']} #{user_data['last_name']}"
        }
      end
# SalesKing requires a subdomain up front
# It needs to be provided in a form and retrieved from the request
# The one on init is not used as it is grabbed from the session later
#
# @param [Rack Application] app  rack middleware application
# @param [String] client_id the application id as registered on SalesKing
# @param [String] client_secret the application secret as registered on SalesKing
# @param [String] sk_url
# @param [String] scope space separated extended permissions such as
#   `api/invoices` or `api/clients:read,delete api/orders`
SalesKing requires a subdomain up front
It needs to be provided in a form and retrieved from the request
The one on init is not used as it is grabbed from the session later
SalesKing requires a subdomain up front It needs to be provided in a form and retrieved from the request The one on init is not used as it is grabbed from the session later
def user_info
        {
          'email' => (user_data["email"] if user_data["email"]),
          'first_name' => user_data["first_name"],
          'last_name' => user_data["last_name"],
          'name' => "#{user_data['first_name']} #{user_data['last_name']}"
        }
      end
def user_info { 'email' => ( user_data [ "email" ] if user_data [ "email" ] ) , 'first_name' => user_data [ "first_name" ] , 'last_name' => user_data [ "last_name" ] , 'name' => "#{user_data['first_name']} #{user_data['last_name']}" } end
SalesKing requires a subdomain up front
It needs to be provided in a form and retrieved from the request
The one on init is not used as it is grabbed from the session later
SalesKing requires a subdomain up front It needs to be provided in a form and retrieved from the request The one on init is not used as it is grabbed from the session later
scope space separated extended permissions such as `api/invoices` or `api/clients:read,delete api/orders`
scope space separated extended permissions such as ` api / invoices ` or ` api / clients : read delete api / orders `