예제 #1
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     if (String.IsNullOrEmpty(StringUtil.RTrim(StringUtil.Trim(AV8websession.Get("DAS_UserPermission")))))
     {
         AV10tCookieContent = context.GetCookie("DAS_LoginUser");
         if (StringUtil.StrCmp(StringUtil.Trim(AV12JWTDecode.decode(AV10tCookieContent)), "DecodeFail") != 0)
         {
             AV15BCXT_Config.Load(6);
             AV19tTargetAPI     = StringUtil.Trim(AV15BCXT_Config.gxTpr_Xt_configvalue3);
             AV9httpclient.Host = AV19tTargetAPI;
             AV9httpclient.AddHeader("Connection", "keep-alive");
             AV9httpclient.AddHeader("Content-Type", "application/json; charset=utf-8");
             AV10tCookieContent = "DAS_LoginUser="******";";
             AV9httpclient.AddHeader("Cookie", AV10tCookieContent);
             AV9httpclient.Execute("Get", "/api/User/getpermission?userid=" + StringUtil.Trim(StringUtil.Upper(AV11WWPContext.gxTpr_Userguid)));
             AV8websession.Set("DAS_UserPermission", StringUtil.Trim(AV9httpclient.ToString()));
         }
         else
         {
             new wb_logout(context).execute(out AV14tSetFlag);
             AV15BCXT_Config.Load(4);
             AV20BCDashXT_Config.Load(3);
             AV13tTargetUrl = StringUtil.Trim(AV15BCXT_Config.gxTpr_Xt_configvalue2);
             AV13tTargetUrl = AV13tTargetUrl + "?returnurl=";
             AV13tTargetUrl = AV13tTargetUrl + AV20BCDashXT_Config.gxTpr_Xt_configvalue1;
             CallWebObject(AV13tTargetUrl);
             context.wjLocDisableFrm = 0;
         }
     }
     this.cleanup();
 }
예제 #2
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     if (String.IsNullOrEmpty(StringUtil.RTrim(StringUtil.Trim(AV11websession.Get("DAS_UserPermission")))))
     {
         AV10tCookieContent = context.GetCookie("DAS_LoginUser");
         if (StringUtil.StrCmp(StringUtil.Trim(AV19JWTDecode.decode(AV10tCookieContent)), "DecodeFail") != 0)
         {
             AV10tCookieContent         = AV20JWTRefreshCode.refreshcode(AV10tCookieContent);
             AV22jwtcookie.Name         = "DAS_LoginUser";
             AV22jwtcookie.CurrentValue = AV10tCookieContent;
             AV22jwtcookie.Path         = "/";
             AV22jwtcookie.HttpOnly     = false;
             AV23httpresponse.SetCookie(AV22jwtcookie);
         }
         else
         {
             new wb_logout(context).execute(out AV14tSetFlag);
             AV15BCXT_Config.Load(4);
             AV16tTargetUrl = StringUtil.Trim(AV15BCXT_Config.gxTpr_Xt_configvalue2);
             AV17tCurPage   = AV18httprequest.BaseURL;
             AV17tCurPage   = AV17tCurPage + AV18httprequest.ScriptName;
             AV16tTargetUrl = AV16tTargetUrl + "?returnurl=";
             AV16tTargetUrl = AV16tTargetUrl + AV17tCurPage;
             CallWebObject(AV16tTargetUrl);
             context.wjLocDisableFrm = 0;
         }
     }
     this.cleanup();
 }
예제 #3
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV18tCheckFlag = false;
     if (String.IsNullOrEmpty(StringUtil.RTrim(StringUtil.Trim(AV8websession.Get("DAS_UserPermission")))))
     {
         AV18tCheckFlag = true;
         AV15BCXT_Config.Load(4);
         AV13tTargetUrl = StringUtil.Trim(AV15BCXT_Config.gxTpr_Xt_configvalue2);
         CallWebObject(AV13tTargetUrl);
         context.wjLocDisableFrm = 0;
     }
     this.cleanup();
 }