Created
February 26, 2021 08:35
-
-
Save simonziegler/9ebbaab936cac2d51df5eba6667b4ae1 to your computer and use it in GitHub Desktop.
B2C Errors immediately after logging in. Page refresh on the app gets B2C data correctly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
08:32:01.832 [INF] Request finished HTTP/2 GET https://localhost:5001/ - - - 302 0 - 3291.1209ms | |
08:32:06.522 [INF] Request starting HTTP/2 POST https://localhost:5001/signin-oidc application/x-www-form-urlencoded 1531 | |
08:32:06.657 [INF] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:06 - ] MSAL MSAL.NetCore with assembly version '4.26.0.0'. CorrelationId(3b044617-9925-4cb0-b290-feb5012d63d3) | |
08:32:06.681 [INF] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:06 - ] | |
=== Request Data === | |
Authority Provided? - True | |
Scopes - https://dioptraCY271GY0CF26DMG9.onmicrosoft.com/a58dadee-29fb-4cb8-9998-29be27b78e24/API.Access | |
Extra Query Params Keys (space separated) - | |
ApiId - AcquireTokenByAuthorizationCode | |
IsConfidentialClient - True | |
SendX5C - False | |
LoginHint ? False | |
IsBrokerConfigured - False | |
HomeAccountId - False | |
CorrelationId - 3b044617-9925-4cb0-b290-feb5012d63d3 | |
08:32:06.682 [INF] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:06 - ] === Token Acquisition (ConfidentialAuthCodeRequest) started: | |
Authority Host: login.microsoftonline.com | |
08:32:06.690 [INF] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:06 - ] [Instance Discovery] Skipping Instance discovery for non-AAD authority. | |
08:32:06.695 [INF] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:06 - ] Resolving authority endpoints... Already resolved? - FALSE | |
08:32:06.745 [INF] Start processing HTTP request "POST" https://login.microsoftonline.com/tfp/tfp/dioptracy271gy0cf26dmg9.onmicrosoft.com/oauth2/v2.0/token | |
08:32:06.746 [INF] Sending HTTP request "POST" https://login.microsoftonline.com/tfp/tfp/dioptracy271gy0cf26dmg9.onmicrosoft.com/oauth2/v2.0/token | |
08:32:07.109 [INF] Received HTTP response headers after 357.8272ms - 404 | |
08:32:07.110 [INF] End processing HTTP request after 367.2505ms - 404 | |
08:32:07.114 [INF] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:07 - ] Response status code does not indicate success: 404 (NotFound). | |
08:32:07.115 [WRN] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:07 - ] Request retry failed. | |
08:32:07.454 [INF] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:07 - ] HttpStatusCode: 404: NotFound | |
08:32:07.817 [ERR] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:07 - ] Exception type: Microsoft.Identity.Client.MsalServiceException | |
, ErrorCode: non_parsable_oauth_error | |
HTTP StatusCode 404 | |
CorrelationId | |
08:32:08.797 [ERR] (False) MSAL 4.26.0.0 MSAL.NetCore Microsoft Windows 10.0.19042 [02/26/2021 08:32:08 - ] Exception type: Microsoft.Identity.Client.MsalServiceException | |
, ErrorCode: non_parsable_oauth_error | |
HTTP StatusCode 404 | |
CorrelationId | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.ThrowServerException(HttpResponse response, RequestContext requestContext) | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.CreateResponse[T](HttpResponse response, RequestContext requestContext) | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.ExecuteRequestAsync[T](Uri endPoint, HttpMethod method, RequestContext requestContext, Boolean expectErrorsOn200OK, Boolean addCommonHeaders) | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.GetTokenAsync(Uri endPoint, RequestContext requestContext, Boolean addCommonHeaders) | |
at Microsoft.Identity.Client.OAuth2.TokenClient.SendHttpAndClearTelemetryAsync(String tokenEndpoint) | |
at Microsoft.Identity.Client.OAuth2.TokenClient.SendHttpAndClearTelemetryAsync(String tokenEndpoint) | |
at Microsoft.Identity.Client.OAuth2.TokenClient.SendTokenRequestAsync(IDictionary`2 additionalBodyParameters, String scopeOverride, String tokenEndpointOverride, CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.Internal.Requests.RequestBase.SendTokenRequestAsync(String tokenEndpoint, IDictionary`2 additionalBodyParameters, CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.Internal.Requests.ConfidentialAuthCodeRequest.ExecuteAsync(CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.Internal.Requests.RequestBase.RunAsync(CancellationToken cancellationToken) | |
08:32:09.250 [INF] Exception occurred while adding an account to the cache from the auth code. | |
MSAL.NetCore.4.26.0.0.MsalServiceException: | |
ErrorCode: non_parsable_oauth_error | |
Microsoft.Identity.Client.MsalServiceException: An error response was returned by the OAuth2 server, but it could not be parsed. Please inspect the exception properties for details. | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.ThrowServerException(HttpResponse response, RequestContext requestContext) | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.CreateResponse[T](HttpResponse response, RequestContext requestContext) | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.ExecuteRequestAsync[T](Uri endPoint, HttpMethod method, RequestContext requestContext, Boolean expectErrorsOn200OK, Boolean addCommonHeaders) | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.GetTokenAsync(Uri endPoint, RequestContext requestContext, Boolean addCommonHeaders) | |
at Microsoft.Identity.Client.OAuth2.TokenClient.SendHttpAndClearTelemetryAsync(String tokenEndpoint) | |
at Microsoft.Identity.Client.OAuth2.TokenClient.SendHttpAndClearTelemetryAsync(String tokenEndpoint) | |
at Microsoft.Identity.Client.OAuth2.TokenClient.SendTokenRequestAsync(IDictionary`2 additionalBodyParameters, String scopeOverride, String tokenEndpointOverride, CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.Internal.Requests.RequestBase.SendTokenRequestAsync(String tokenEndpoint, IDictionary`2 additionalBodyParameters, CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.Internal.Requests.ConfidentialAuthCodeRequest.ExecuteAsync(CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.Internal.Requests.RequestBase.RunAsync(CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.ApiConfig.Executors.ConfidentialClientExecutor.ExecuteAsync(AcquireTokenCommonParameters commonParameters, AcquireTokenByAuthorizationCodeParameters authorizationCodeParameters, CancellationToken cancellationToken) | |
at Microsoft.Identity.Web.TokenAcquisition.AddAccountToCacheFromAuthorizationCodeAsync(AuthorizationCodeReceivedContext context, IEnumerable`1 scopes) | |
StatusCode: 404 | |
ResponseBody: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> | |
<title>404 - File or directory not found.</title> | |
<style type="text/css"> | |
<!-- | |
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;} | |
fieldset{padding:0 15px 10px 15px;} | |
h1{font-size:2.4em;margin:0;color:#FFF;} | |
h2{font-size:1.7em;margin:0;color:#CC0000;} | |
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} | |
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF; | |
background-color:#555555;} | |
#content{margin:0 0 0 2%;position:relative;} | |
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} | |
--> | |
</style> | |
</head> | |
<body> | |
<div id="header"><h1>Server Error</h1></div> | |
<div id="content"> | |
<div class="content-container"><fieldset> | |
<h2>404 - File or directory not found.</h2> | |
<h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3> | |
</fieldset></div> | |
</div> | |
</body> | |
</html> | |
Headers: X-Frame-Options: DENY | |
Set-Cookie: x-ms-gateway-slice=001-000; path=/; secure; httponly | |
Public: OPTIONS,TRACE,GET,HEAD,POST | |
Strict-Transport-Security: max-age=31536000; includeSubDomains | |
X-Content-Type-Options: nosniff | |
X-XSS-Protection: 1; mode=block | |
Date: Fri, 26 Feb 2021 08:32:08 GMT | |
08:32:09.974 [ERR] Exception occurred while processing message. | |
MSAL.NetCore.4.26.0.0.MsalServiceException: | |
ErrorCode: non_parsable_oauth_error | |
Microsoft.Identity.Client.MsalServiceException: An error response was returned by the OAuth2 server, but it could not be parsed. Please inspect the exception properties for details. | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.ThrowServerException(HttpResponse response, RequestContext requestContext) | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.CreateResponse[T](HttpResponse response, RequestContext requestContext) | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.ExecuteRequestAsync[T](Uri endPoint, HttpMethod method, RequestContext requestContext, Boolean expectErrorsOn200OK, Boolean addCommonHeaders) | |
at Microsoft.Identity.Client.OAuth2.OAuth2Client.GetTokenAsync(Uri endPoint, RequestContext requestContext, Boolean addCommonHeaders) | |
at Microsoft.Identity.Client.OAuth2.TokenClient.SendHttpAndClearTelemetryAsync(String tokenEndpoint) | |
at Microsoft.Identity.Client.OAuth2.TokenClient.SendHttpAndClearTelemetryAsync(String tokenEndpoint) | |
at Microsoft.Identity.Client.OAuth2.TokenClient.SendTokenRequestAsync(IDictionary`2 additionalBodyParameters, String scopeOverride, String tokenEndpointOverride, CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.Internal.Requests.RequestBase.SendTokenRequestAsync(String tokenEndpoint, IDictionary`2 additionalBodyParameters, CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.Internal.Requests.ConfidentialAuthCodeRequest.ExecuteAsync(CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.Internal.Requests.RequestBase.RunAsync(CancellationToken cancellationToken) | |
at Microsoft.Identity.Client.ApiConfig.Executors.ConfidentialClientExecutor.ExecuteAsync(AcquireTokenCommonParameters commonParameters, AcquireTokenByAuthorizationCodeParameters authorizationCodeParameters, CancellationToken cancellationToken) | |
at Microsoft.Identity.Web.TokenAcquisition.AddAccountToCacheFromAuthorizationCodeAsync(AuthorizationCodeReceivedContext context, IEnumerable`1 scopes) | |
at Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilder.<>c__DisplayClass11_1.<<WebAppCallsWebApiImplementation>b__1>d.MoveNext() | |
--- End of stack trace from previous location --- | |
at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.RunAuthorizationCodeReceivedEventAsync(OpenIdConnectMessage authorizationResponse, ClaimsPrincipal user, AuthenticationProperties properties, JwtSecurityToken jwt) at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleRemoteAuthenticateAsync() | |
StatusCode: 404 | |
ResponseBody: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> | |
<title>404 - File or directory not found.</title> | |
<style type="text/css"> | |
<!-- | |
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;} | |
fieldset{padding:0 15px 10px 15px;} | |
h1{font-size:2.4em;margin:0;color:#FFF;} | |
h2{font-size:1.7em;margin:0;color:#CC0000;} | |
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} | |
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF; | |
background-color:#555555;} | |
#content{margin:0 0 0 2%;position:relative;} | |
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} | |
--> | |
</style> | |
</head> | |
<body> | |
<div id="header"><h1>Server Error</h1></div> | |
<div id="content"> | |
<div class="content-container"><fieldset> | |
<h2>404 - File or directory not found.</h2> | |
<h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3> | |
</fieldset></div> | |
</div> | |
</body> | |
</html> | |
Headers: X-Frame-Options: DENY | |
Set-Cookie: x-ms-gateway-slice=001-000; path=/; secure; httponly | |
Public: OPTIONS,TRACE,GET,HEAD,POST | |
Strict-Transport-Security: max-age=31536000; includeSubDomains | |
X-Content-Type-Options: nosniff | |
X-XSS-Protection: 1; mode=block | |
Date: Fri, 26 Feb 2021 08:32:08 GMT | |
08:32:09.979 [INF] Error from RemoteAuthentication: "An error response was returned by the OAuth2 server, but it could not be parsed. Please inspect the exception properties for details. ". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment