add troubleshooting mode.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD 2025-03-30 20:39:25 -06:00
parent fc174160e0
commit 6937eff576
2 changed files with 5 additions and 0 deletions

View File

@ -136,6 +136,10 @@ namespace CarCareTracker.Controllers
//validate JWT token
var tokenParser = new JwtSecurityTokenHandler();
var parsedToken = tokenParser.ReadJwtToken(userJwt);
if (openIdConfig.TroubleshootingMode)
{
_logger.LogInformation($"OpenID Troubleshooting Mode Enabled - Token: {userJwt}");
}
var userEmailAddress = string.Empty;
if (parsedToken.Claims.Any(x => x.Type == "email"))
{

View File

@ -15,6 +15,7 @@
public bool DisableRegularLogin { get; set; } = false;
public bool UsePKCE { get; set; } = false;
public string LogOutURL { get; set; } = "";
public bool TroubleshootingMode { get; set; } = false;
public string RemoteAuthURL { get {
var redirectUrl = $"{AuthURL}?client_id={ClientId}&response_type=code&redirect_uri={RedirectURL}&scope={Scope}&state={State}";
if (UsePKCE)