Table of Contents

Class RefreshTokenCommand

Namespace
SEBT.Portal.UseCases.Auth
Assembly
SEBT.Portal.UseCases.dll

Command for refreshing a JWT token with updated user information. The user ID and the claims to preserve are both read from CurrentPrincipal.

public class RefreshTokenCommand : ICommand<string>, ICommand
Inheritance
object
RefreshTokenCommand
Implements
ICommand<string>

Properties

CurrentPrincipal

The current ClaimsPrincipal for the request. The handler reads the portal user ID from the sub claim and preserves the remaining claims (e.g. IAL from IdP for OIDC users) when generating the refreshed token.

[Required(ErrorMessage = "CurrentPrincipal is required.")]
public required ClaimsPrincipal CurrentPrincipal { get; init; }

Property Value

ClaimsPrincipal