void executePrivate( ) { /* GeneXus formulas */ /* Output device settings */ AV8httprequest.GetHeader("Cookie"); if (!context.isAjaxRequest( )) { AV9httpresponse.AppendHeader("Access-Control-Allow-Origin", "*"); } GXt_char1 = AV11newToken; new zutil_gettargetcookievalue(context).execute("DAS_LoginUser", out GXt_char1); AV11newToken = GXt_char1; if (StringUtil.StrCmp(AV11newToken, "CookieFindError") != 0) { AV11newToken = AV19JWTRefreshCode.refreshcode(AV11newToken); AV13tCookieToken = "DAS_LoginUser="******"; path=/;Expires=1969-12-31T23:59:59.000Z;"; if (!context.isAjaxRequest( )) { AV9httpresponse.AppendHeader("Access-Control-Allow-Credentials", "true"); } if (!context.isAjaxRequest( )) { AV9httpresponse.AppendHeader("Set-Cookie", AV13tCookieToken); } } else { AV11newToken = "Refresh Error"; } this.cleanup(); }
void executePrivate( ) { /* GeneXus formulas */ /* Output device settings */ AV8httprequest.GetHeader("Cookie"); if (!context.isAjaxRequest( )) { AV9httpresponse.AppendHeader("Access-Control-Allow-Origin", "*"); } GXt_char1 = AV11newToken; new zutil_gettargetcookievalue(context).execute("DAS_LoginUser", out GXt_char1); AV11newToken = GXt_char1; if (StringUtil.StrCmp(AV11newToken, "CookieFindError") != 0) { GXt_char1 = AV12tCookieContent; new zutil_gettargetcookievalue(context).execute("GX_Cookie", out GXt_char1); AV12tCookieContent = StringUtil.Trim(GXt_char1); AV12tCookieContent = StringUtil.StringReplace(StringUtil.StringReplace(StringUtil.StringReplace(AV12tCookieContent, "%2f", "/"), "%2b", "+"), "%3d", "="); AV11newToken = AV12tCookieContent; AV17tNewCookieContent = Decrypt64(AV12tCookieContent, "A803C9281F6C819705ADF9E4208BE89C"); AV16WWPContext.FromXml(AV17tNewCookieContent, null, "WWPContext", "DataAnalysisPlatform"); AV14tSDT_JWT = new SdtSDT_JWT(context); AV14tSDT_JWT.gxTpr_Name = AV16WWPContext.gxTpr_Username; AV14tSDT_JWT.gxTpr_Userid = AV16WWPContext.gxTpr_Userguid; AV14tSDT_JWT.gxTpr_Ip = AV16WWPContext.gxTpr_Clientip; AV14tSDT_JWT.gxTpr_Nbf = "123421423"; AV14tSDT_JWT.gxTpr_Exp = "1740576564857"; AV14tSDT_JWT.gxTpr_Iss = "das"; AV14tSDT_JWT.gxTpr_Aud = "das"; AV14tSDT_JWT.gxTpr_Iat = "124124214"; AV13tCookieToken = "DAS_LoginUser="******"; path=/; HttpOnly; Expires=1969-12-31T23:59:59.000Z;"; if (!context.isAjaxRequest( )) { AV9httpresponse.AppendHeader("Access-Control-Allow-Credentials", "true"); } if (!context.isAjaxRequest( )) { AV9httpresponse.AppendHeader("Set-Cookie", AV13tCookieToken); } AV11newToken = AV18tNewJwtToken; } else { AV11newToken = "Refresh Error"; } this.cleanup(); }