When my server runs locally (GTM+1) all is fine when i place my server in -8 timezone e.g.
Then I get an Message:
IDX12401: Expires: '[PII is hidden by default. Set the 'ShowPII' flag in IdentityModelEventSource.cs to true to reveal it.]' must be after NotBefore: '[PII is hidden by default. Set the 'ShowPII' flag in IdentityModelEventSource.cs to true to reveal it.]'.
This seems to be because
Expires = DateTime.Now.AddMinutes(30),
... other code ...
JwtSecurityTokenHandler handler = new JwtSecurityTokenHandler();
JwtSecurityToken token = handler.CreateJwtSecurityToken(descriptor);
Errors out. The strange thing is that the Expires field is the current time in that zone +30 minutes (which is what is configured +30 minutes). This is strange. Why does it not allow logging in and immediately expires with that message but only when in a -X time zone while the time shown is actually 30 minutes in the future.