Merge pull request #330 from hargata/Hargata/minor.improvement

added state for OIDC
This commit is contained in:
Hargata Softworks
2024-02-22 16:04:14 -07:00
committed by GitHub

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}"; } }
}
}