app/controllers/api_controller/initializer.rb
#
# Let's create a new token manager for the API
#
Let's create a new token manager for the API
Let ' s create a new token manager for the API
def new_token_mgr(mod, name, api_config)
        token_ttl   = api_config[:token_ttl]
        options                          = {}
        options[:token_ttl]              = token_ttl.to_i_with_method if token_ttl
        options[REQUESTER_TTL_CONFIG["ui"]] = fetch_ui_token_ttl
        $api_log.info("")
        $api_log.info("Creating new Token Manager for the #{name}")
        $api_log.info("   Token Manager  module: #{mod}")
        $api_log.info("   Token Manager options:")
        options.each { |key, val| log_kv(key, val, "    ") }
        $api_log.info("")
        TokenManager.new(mod, options)
      end
def new_token_mgr ( mod , name , api_config ) token_ttl = api_config [ :token_ttl ] options = { } options [ :token_ttl ] = token_ttl . to_i_with_method if token_ttl options [ REQUESTER_TTL_CONFIG [ "ui" ] ] = fetch_ui_token_ttl $api_log . info ( "" ) $api_log . info ( "Creating new Token Manager for the #{name}" ) $api_log . info ( "   Token Manager  module: #{mod}" ) $api_log . info ( "   Token Manager options:" ) options . each { | key , val | log_kv ( key , val , "    " ) } $api_log . info ( "" ) TokenManager . new ( mod , options ) end
Let's create a new token manager for the API
Let ' s create a new token manager for the API
mod
<not_specific>
name
<not_specific>
api_config
<not_specific>