From 4ddfa038723c4743e483c35ac76ed535ccecccfd Mon Sep 17 00:00:00 2001 From: Chris R Date: Thu, 13 Jul 2017 09:28:07 -0700 Subject: [PATCH] #75 Fix OIDC error formatting. --- .../OpenidConnectAuthenticationHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Owin.Security.OpenIdConnect/OpenidConnectAuthenticationHandler.cs b/src/Microsoft.Owin.Security.OpenIdConnect/OpenidConnectAuthenticationHandler.cs index 3922516f..c624566c 100644 --- a/src/Microsoft.Owin.Security.OpenIdConnect/OpenidConnectAuthenticationHandler.cs +++ b/src/Microsoft.Owin.Security.OpenIdConnect/OpenidConnectAuthenticationHandler.cs @@ -251,8 +251,8 @@ namespace Microsoft.Owin.Security.OpenIdConnect { throw new OpenIdConnectProtocolException( string.Format(CultureInfo.InvariantCulture, - openIdConnectMessage.Error, - Resources.Exception_OpenIdConnectMessageError, openIdConnectMessage.ErrorDescription ?? string.Empty, openIdConnectMessage.ErrorUri ?? string.Empty)); + Resources.Exception_OpenIdConnectMessageError, + openIdConnectMessage.Error, openIdConnectMessage.ErrorDescription ?? string.Empty, openIdConnectMessage.ErrorUri ?? string.Empty)); } // code is only accepted with id_token, in this version, hence check for code is inside this if