fusionauth-issues icon indicating copy to clipboard operation
fusionauth-issues copied to clipboard

FusionAuth should fail gracefully when OpenID Connect IdP endpoint fails

Open jaywood128 opened this issue 3 years ago • 1 comments

FusionAuth should fail gracefully when OpenID Connect IdP endpoint fails

Description

When users try to login to an application using an OpenID Connect Idp, and the IdP is failing, the error messages do not indicate an Idp failure.

Upon login, users are seeing:

Failed to complete a login for Identity Provider <redacted>.
 
The following errors occurred:
 
{
  "fieldErrors" : { },
  "generalErrors" : [ {
    "code" : "[Exception]",
    "message" : "FusionAuth encountered an unexpected error. Please review the troubleshooting guide found in the documentation for assistance and the available support channels."
  } ]
}

Event logs with metadata redacted:


Unable to resolve OpenID Connect configuration using issuer [https://............/OIDC] for [

Request to the [https://........./.well-known/openid-configuration] endpoint failed.

Status code [-1]
Exception encountered.
java.net.SocketException : Message: Connection reset

If an IdP is having issues or not returning certain metadata, a message stating there was an issue connecting to your identity provider should be displayed to the user, such as the one in the event logs above, instead of a generic exception. The name of the IdP Service provider should continue to be redacted.

jaywood128 avatar Sep 01 '22 01:09 jaywood128

Related:

  • https://github.com/FusionAuth/fusionauth-issues/issues/1197

mooreds avatar Sep 01 '22 05:09 mooreds