For creating and accessing authentication contexts.
ValueTask< IAuthenticationContext > CreateAuthenticationContext(long userId, long? instanceId, DateTimeOffset notBefore, CancellationToken cancellationToken)
Create an IAuthenticationContext in the request pipeline for a given userId and instanceId .