diff --git a/SSO-Auth/Api/SSOController.cs b/SSO-Auth/Api/SSOController.cs index 861ae74..2c24945 100644 --- a/SSO-Auth/Api/SSOController.cs +++ b/SSO-Auth/Api/SSOController.cs @@ -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 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 /// A webpage that will complete the client-side flow. [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;