1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-11 04:58:16 +03:00

Feature : Add params[:id] to the authentication

This commit is contained in:
Daniel Molina 2014-07-23 11:27:20 +02:00
parent 8f948667f2
commit 84224ee5c5

@ -30,7 +30,7 @@ module OneGateCloudAuth
def do_auth(env, params={})
token = env['HTTP_X_ONEGATE_TOKEN']
vmid = env['HTTP_X_ONEGATE_VMID']
vmid = env['HTTP_X_ONEGATE_VMID'] || params[:id] # DEPRECATED
if token.nil?
logger.error {"X_ONEGATE_TOKEN header not preset"}