KanBo Error: User Authentication Postback Failed

Table of Contents

The “User authentication postback failed” error in KanBo during an on-premises installation is usually caused by authentication issues between KanBo and SharePoint. These issues are often caused by an incorrect configuration of SharePoint app settings, certificates, or permissions.

If you receive an error message like this in KanBo:

  1. Check the KanBo log file for further information about it.
Plugins         FATAL | plugin 03470f82-ba88-4247-adb5-6babadd84d47(Sharepoint on-premise authentication): An unexpected exception has occured 
EXCEPTION: System.Configuration.ConfigurationErrorsException: Element signer not found in /kanbo/(0)plugins/(3)auth.sharepoint (/)
  1. If the KanBo log file shows an error similar to this one, please check the appsettings.json file to see if you included the certificate information. Most likely, it is incorrect or missing entirely.
  2. It is also possible that the following error will show up in the KanBo log file as well:

Security        ERROR | User authentication postback failed (56f6cf25-4353-42a2-b48c-b5eb164d553a):
KanBo.Plugins.Infrastructure.FactoryNotFoundException: Factory not found name=sp type=auth:login
  1. If only this error shows up, please check the certificate information in the appsettings.json file, as it most likely includes an error.
  2. The following errors are also related: If you see any of these errors in the KanBo log file, be sure to check the certificate configuration in your appsettings.json in detail. Also, check if the certificate is in the correct certificate store.
Plugins         FATAL | plugin 03470f82-ba88-4247-adb5-6babadd84d47(Sharepoint on-premise authentication): An unexpected exception has occured 
EXCEPTION: System.Exception: Signer of type x509-store encountered an exception (path: /kanbo/(0)plugins/(3)auth.sharepoint/(0)signer)
Security        ERROR | User authentication postback failed (96d9ea3c-e7ae-43d7-bf04-216818055f56):
KanBo.Plugins.Infrastructure.FactoryNotFoundException: Factory not found name=sp type=auth:login
  1. If you see one of the following errors in your KanBo log file, please check that you have not included more than one certificate configuration in your appsettings.json file. There should only be one. You can use either thumbprint or file, but not both, as this will cause an error.
Plugins         FATAL | plugin 03470f82-ba88-4247-adb5-6babadd84d47(Sharepoint on-premise authentication): An unexpected exception has occured 
EXCEPTION: System.Configuration.ConfigurationErrorsException: Multiple elements signer found in /kanbo/(0)plugins/(3)auth.sharepoint
Plugins         FATAL | plugin 03470f82-ba88-4247-adb5-6babadd84d47(Sharepoint on-premise authentication): An unexpected exception has occured 
EXCEPTION: System.Configuration.ConfigurationErrorsException: Multiple elements signer found in /kanbo/(0)plugins/(3)auth.sharepoint
  1. See the example below for reference. You only need to change the thumbprint.
{
"type": "auth-by-login",
"issuer": "sp"
},
"identity-source",
{
"type": "auth.sharepoint",
"sp-host-url": "https://portal.contoso.com/",
"client-id": "e07c022e-abe5-4872-915f-d45ea7371a68",
"issuer-id": "096252ca-4086-82e1-7096efbfdb75386d",
"signer": {
"type": "x509-store",
"key": "thumbprint",
"value": "4D8A0AB6C08F1A232322D8159091BEE620A50BFB",
"store-name": "my",
"store-location": "localmachine",
"valid-only": false
}
}
  1. Additionally, please check the expiration date of your high-trust certificate. You can also do this directly in the certificate details.

Was this article helpful?

Please, contact us if you have any additional questions.