182 bugfix
This commit is contained in:
+3
-2
@@ -52,7 +52,7 @@
|
||||
|
||||
//variables.framework.docs={};
|
||||
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["Access-Control-Expose-Headers"] = "Location";
|
||||
@@ -80,7 +80,7 @@
|
||||
// в нем, когда переменная получает значение Empty:null, можно выполнить writedump, а в других получаем ошибку, что такой переменной нет
|
||||
|
||||
request.auth_header="";
|
||||
request.locateIamService=locateIamService; //for possible debug
|
||||
//request.locateIamService=locateIamService; //for possible debug
|
||||
//request.IAM_SERVICE_URL=this.iamServiceUrl; // так не работает!
|
||||
|
||||
</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"});
|
||||
request.stand=this.getStand();
|
||||
request.iam_service_url=this.iamServiceUrl;
|
||||
|
||||
if (uCase(arguments.verb) EQ 'OPTIONS') return true;
|
||||
|
||||
@@ -124,6 +124,7 @@
|
||||
<cfset logVaultAccess(
|
||||
request.iam_service_url,
|
||||
request.auth_header,
|
||||
request.stand,
|
||||
arguments.instanceUid,
|
||||
arguments.secretName,
|
||||
vaultUrl,
|
||||
@@ -142,6 +143,7 @@
|
||||
<cffunction name="logVaultAccess" returntype="void">
|
||||
<cfargument name="iamUrl" type="string" required=true hint=""/>
|
||||
<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="secretName" type="string" required=true hint="type:string"/>
|
||||
<cfargument name="vaultUrl" type="string" required=true hint="type:string"/>
|
||||
@@ -177,7 +179,7 @@
|
||||
"secretName": "#arguments.secretName#",
|
||||
"action": "view",
|
||||
"instance_uid": "#arguments.instanceUid#",
|
||||
"environment": "#getStand()#",
|
||||
"environment": "#arguments.stand#",
|
||||
"usr_id": "#arguments.usrId#",
|
||||
"contragent_id": "#arguments.contragentId#",
|
||||
"login": "#arguments.login#",
|
||||
|
||||
Reference in New Issue
Block a user