summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samples/OpenIdProviderMvc/Controllers/OpenIdController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OpenIdProviderMvc/Controllers/OpenIdController.cs b/samples/OpenIdProviderMvc/Controllers/OpenIdController.cs
index 14182a1..b0e03a4 100644
--- a/samples/OpenIdProviderMvc/Controllers/OpenIdController.cs
+++ b/samples/OpenIdProviderMvc/Controllers/OpenIdController.cs
@@ -82,7 +82,7 @@ namespace OpenIdProviderMvc.Controllers {
!this.UserControlsIdentifier(ProviderEndpoint.PendingAuthenticationRequest))
{
// The user shouldn't have gotten this far without controlling the identifier we'd send an assertion for.
- return new HttpStatusCodeResult((int)HttpStatusCode.BadRequest);
+ throw new InvalidOperationException();
}
if (ProviderEndpoint.PendingAnonymousRequest != null) {