Skip to content

Commit 1e5e57d

Browse files
Minor format changes.
1 parent 427e4f5 commit 1e5e57d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

dotnet/src/dotnetcore/GxNetCoreStartup/GxNetCoreStartup.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
1413
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="3.1.7" />
1514
<PackageReference Include="Microsoft.AspNetCore.Rewrite" Version="2.2.0" />
1615
<PackageReference Include="Microsoft.Data.SqlClient" Version="1.1.4" />

dotnet/src/dotnetcore/GxNetCoreStartup/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ public void Configure(IApplicationBuilder app, Microsoft.AspNetCore.Hosting.IHos
397397
ExceptionHandler = new CustomExceptionHandlerMiddleware().Invoke,
398398
AllowStatusCode404Response = true
399399
});
400+
400401
string restBasePath = string.IsNullOrEmpty(VirtualPath) ? REST_BASE_URL : $"{VirtualPath}/{REST_BASE_URL}";
401402
string apiBasePath = string.IsNullOrEmpty(VirtualPath) ? string.Empty : $"{VirtualPath}/";
402403
IAntiforgery antiforgery = null;
@@ -516,7 +517,6 @@ public async Task Invoke(HttpContext httpContext)
516517
{
517518
httpStatusCode = HttpStatusCode.NotFound;
518519
}
519-
520520
else if (ex is AntiforgeryValidationException)
521521
{
522522
//"The required antiforgery header value "X-GXCSRF-TOKEN" is not present.
@@ -534,7 +534,7 @@ public async Task Invoke(HttpContext httpContext)
534534
{
535535
string redirectPage = Config.MapCustomError(httpStatusCode.ToString(HttpHelper.INT_FORMAT));
536536
if (!string.IsNullOrEmpty(redirectPage))
537-
{
537+
{
538538
httpContext.Response.Redirect($"{httpContext.Request.GetApplicationPath()}/{redirectPage}");
539539
}
540540
else

dotnet/src/dotnetframework/GxClasses/Security/GxSecurityProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@ public GxResult checkaccesstoken(IGxContext context, string token, out bool isOK
8888
isOK = false;
8989
return new GxResult();
9090
}
91+
9192
public GxResult checkaccesstokenprm(IGxContext context, string token, string permissionPrefix, out bool sessionOk, out bool permissionOk)
9293
{
9394
permissionOk = false;
9495
sessionOk = true;
9596
return new GxResult();
9697
}
98+
9799
public void checksession(IGxContext context, string CleanAbsoluteUri, out bool isOK)
98100
{
99101
isOK = false;

0 commit comments

Comments
 (0)