Compare commits

...
1 Commits
Author SHA1 Message Date
Ersei Saggi 0505d4a73d Do not cache authenticated responses 2024-02-07 10:29:05 -05:00
+2
View File
@@ -66,6 +66,7 @@ public class SSOController : ControllerBase
// Actually a GET: https://github.com/IdentityModel/IdentityModel.OidcClient/issues/325
[HttpGet("OID/r/{provider}")]
[HttpGet("OID/redirect/{provider}")]
[ResponseCache(Location = ResponseCacheLocation.None, NoStore = true)]
public async Task<ActionResult> OidPost(
[FromRoute] string provider,
[FromQuery] string state) // Although this is a GET function, this function is called `Post` for consistency with SAML
@@ -437,6 +438,7 @@ public class SSOController : ControllerBase
/// <returns>A webpage that will complete the client-side flow.</returns>
[HttpPost("SAML/p/{provider}")]
[HttpPost("SAML/post/{provider}")]
[ResponseCache(Location = ResponseCacheLocation.None, NoStore = true)]
public ActionResult SamlPost(string provider, [FromQuery] string relayState = null)
{
SamlConfig config;