mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 21:16:52 +01:00
Fixes #2439
This commit is contained in:
@@ -109,9 +109,9 @@ namespace Tgstation.Server.Host.Security
|
||||
public void Dispose() => currentAuthenticationContext.Dispose();
|
||||
|
||||
/// <inheritdoc />
|
||||
#pragma warning disable CA1506 // TODO: Decomplexify
|
||||
#pragma warning disable CA1506 // TODO: Decomplexify
|
||||
public async Task ValidateTgsToken(Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext tokenValidatedContext, CancellationToken cancellationToken)
|
||||
#pragma warning restore CA1506
|
||||
#pragma warning restore CA1506
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(tokenValidatedContext);
|
||||
|
||||
@@ -212,6 +212,8 @@ namespace Tgstation.Server.Host.Security
|
||||
.Include(oidcConnection => oidcConnection.User)
|
||||
.ThenInclude(user => user!.Group)
|
||||
.ThenInclude(group => group!.PermissionSet)
|
||||
.Include(oidcConnection => oidcConnection.User)
|
||||
.ThenInclude(user => user!.PermissionSet)
|
||||
.FirstOrDefaultAsync(cancellationToken);
|
||||
|
||||
User user;
|
||||
|
||||
Reference in New Issue
Block a user