mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
add troubleshooting mode.
This commit is contained in:
parent
fc174160e0
commit
6937eff576
@ -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"))
|
||||
{
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user