added state for OIDC

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD 2024-02-22 15:59:35 -07:00
parent 9262131936
commit a2c013ec43

View File

@ -9,6 +9,7 @@
public string TokenURL { get; set; }
public string RedirectURL { get; set; }
public string Scope { get; set; }
public string RemoteAuthURL { get { return $"{AuthURL}?client_id={ClientId}&response_type=code&redirect_uri={RedirectURL}&scope={Scope}"; } }
public string State { get { return Guid.NewGuid().ToString().Substring(0, 8); } }
public string RemoteAuthURL { get { return $"{AuthURL}?client_id={ClientId}&response_type=code&redirect_uri={RedirectURL}&scope={Scope}&state={State}"; } }
}
}