tgstation-server 6.16.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ITokenValidator.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
4using Microsoft.AspNetCore.Authentication;
5using Microsoft.AspNetCore.Authentication.OpenIdConnect;
6
8{
12 public interface ITokenValidator
13 {
20 Task ValidateTgsToken(Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext tokenValidatedContext, CancellationToken cancellationToken);
21
30 Task ValidateOidcToken(RemoteAuthenticationContext<OpenIdConnectOptions> tokenValidatedContext, string schemeKey, string groupIdClaimName, CancellationToken cancellationToken);
31 }
32}
Handles validating authentication tokens.
Task ValidateTgsToken(Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext tokenValidatedContext, CancellationToken cancellationToken)
Handles TGS tokenValidatedContext s.
Task ValidateOidcToken(RemoteAuthenticationContext< OpenIdConnectOptions > tokenValidatedContext, string schemeKey, string groupIdClaimName, CancellationToken cancellationToken)
Handles OIDC tokenValidatedContext s.