182 bugfix
This commit is contained in:
+3
-2
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
//variables.framework.docs={};
|
//variables.framework.docs={};
|
||||||
variables.framework.docs.APIName="svc-api";
|
variables.framework.docs.APIName="svc-api";
|
||||||
variables.framework.docs.APIVersion="0.181"; /*$ git config --global --unset user.password*/
|
variables.framework.docs.APIVersion="0.182"; /*$ git config --global --unset user.password*/
|
||||||
|
|
||||||
variables.framework.globalHeaders = structNew();
|
variables.framework.globalHeaders = structNew();
|
||||||
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
// в нем, когда переменная получает значение Empty:null, можно выполнить writedump, а в других получаем ошибку, что такой переменной нет
|
// в нем, когда переменная получает значение Empty:null, можно выполнить writedump, а в других получаем ошибку, что такой переменной нет
|
||||||
|
|
||||||
request.auth_header="";
|
request.auth_header="";
|
||||||
request.locateIamService=locateIamService; //for possible debug
|
//request.locateIamService=locateIamService; //for possible debug
|
||||||
//request.IAM_SERVICE_URL=this.iamServiceUrl; // так не работает!
|
//request.IAM_SERVICE_URL=this.iamServiceUrl; // так не работает!
|
||||||
|
|
||||||
</cfscript>
|
</cfscript>
|
||||||
@@ -236,6 +236,7 @@
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
//if (UCase(arguments.verb) EQ 'OPTIONS') return newRepresentation().noData().withStatus("204","No Data").withHeaders({"Content-Type":"application/json;charset=utf-8"});
|
//if (UCase(arguments.verb) EQ 'OPTIONS') return newRepresentation().noData().withStatus("204","No Data").withHeaders({"Content-Type":"application/json;charset=utf-8"});
|
||||||
|
request.stand=this.getStand();
|
||||||
request.iam_service_url=this.iamServiceUrl;
|
request.iam_service_url=this.iamServiceUrl;
|
||||||
|
|
||||||
if (uCase(arguments.verb) EQ 'OPTIONS') return true;
|
if (uCase(arguments.verb) EQ 'OPTIONS') return true;
|
||||||
|
|||||||
@@ -124,6 +124,7 @@
|
|||||||
<cfset logVaultAccess(
|
<cfset logVaultAccess(
|
||||||
request.iam_service_url,
|
request.iam_service_url,
|
||||||
request.auth_header,
|
request.auth_header,
|
||||||
|
request.stand,
|
||||||
arguments.instanceUid,
|
arguments.instanceUid,
|
||||||
arguments.secretName,
|
arguments.secretName,
|
||||||
vaultUrl,
|
vaultUrl,
|
||||||
@@ -142,6 +143,7 @@
|
|||||||
<cffunction name="logVaultAccess" returntype="void">
|
<cffunction name="logVaultAccess" returntype="void">
|
||||||
<cfargument name="iamUrl" type="string" required=true hint=""/>
|
<cfargument name="iamUrl" type="string" required=true hint=""/>
|
||||||
<cfargument name="authHeader" type="string" required=true hint="type:string"/>
|
<cfargument name="authHeader" type="string" required=true hint="type:string"/>
|
||||||
|
<cfargument name="stand" type="string" required=true hint="type:string"/>
|
||||||
<cfargument name="instanceUid" type="string" required=true hint="type:UUID"/>
|
<cfargument name="instanceUid" type="string" required=true hint="type:UUID"/>
|
||||||
<cfargument name="secretName" type="string" required=true hint="type:string"/>
|
<cfargument name="secretName" type="string" required=true hint="type:string"/>
|
||||||
<cfargument name="vaultUrl" type="string" required=true hint="type:string"/>
|
<cfargument name="vaultUrl" type="string" required=true hint="type:string"/>
|
||||||
@@ -177,7 +179,7 @@
|
|||||||
"secretName": "#arguments.secretName#",
|
"secretName": "#arguments.secretName#",
|
||||||
"action": "view",
|
"action": "view",
|
||||||
"instance_uid": "#arguments.instanceUid#",
|
"instance_uid": "#arguments.instanceUid#",
|
||||||
"environment": "#getStand()#",
|
"environment": "#arguments.stand#",
|
||||||
"usr_id": "#arguments.usrId#",
|
"usr_id": "#arguments.usrId#",
|
||||||
"contragent_id": "#arguments.contragentId#",
|
"contragent_id": "#arguments.contragentId#",
|
||||||
"login": "#arguments.login#",
|
"login": "#arguments.login#",
|
||||||
|
|||||||
Reference in New Issue
Block a user