lubelog/Models/OIDC/OpenIDConfig.cs
DESKTOP-T0O5CDB\DESK-555BD a2c013ec43 added state for OIDC
2024-02-22 15:59:35 -07:00

16 lines
649 B
C#

namespace CarCareTracker.Models
{
public class OpenIDConfig
{
public string Name { get; set; }
public string ClientId { get; set; }
public string ClientSecret { get; set; }
public string AuthURL { get; set; }
public string TokenURL { get; set; }
public string RedirectURL { get; set; }
public string Scope { get; set; }
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}"; } }
}
}