mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-11 04:58:16 +03:00
Feature #3051: Add params[:id] to the authentication
This commit is contained in:
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"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user