コード例 #1
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();
 }
コード例 #2
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV8tClientAddress = context.GetRemoteAddress( );
     AV11tContent      = AV19JWTDecode.decode(AV9iCheckToken);
     AV10tSDT_JWT.FromJSonString(AV11tContent, null);
     AV15tCorrectFlag = true;
     AV11tContent     = StringUtil.Trim(AV10tSDT_JWT.gxTpr_Ip);
     if (AV15tCorrectFlag)
     {
         if (StringUtil.StrCmp(StringUtil.Trim(AV8tClientAddress), StringUtil.Trim(AV10tSDT_JWT.gxTpr_Ip)) != 0)
         {
             AV15tCorrectFlag = false;
         }
     }
     this.cleanup();
 }