cie-aspnetcore icon indicating copy to clipboard operation
cie-aspnetcore copied to clipboard

The given key 'LogoutRequest' was not present in the dictionary

Open andreakarasho opened this issue 9 months ago • 2 comments

Buongiorno, riceviamo in produzione questo errore quando si tenta il logout:

System.Collections.Generic.KeyNotFoundException: The given key 'LogoutRequest' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at CIE.AspNetCore.Authentication.AuthenticationPropertiesExtensions.GetLogoutRequest(AuthenticationProperties properties)
   at CIE.AspNetCore.Authentication.CieHandler.HandleRemoteSignOutAsync()
   at IdentityServer4.Hosting.FederatedSignOut.AuthenticationRequestHandlerWrapper.HandleRequestAsync()
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)

Questa è la configurazione CIE:

"Provider": {
        "Name": "CIE Produzione",
        "OrganizationName": "CIE Produzione",
        "OrganizationDisplayName": "CIE Produzione",
        "OrganizationUrlMetadata": "https://idserver.servizicie.interno.gov.it/idp/shibboleth?Metadata",
        "OrganizationUrl": "https://www.interno.gov.it/it",
        "OrganizationLogoUrl": "",
        "SingleSignOnServiceUrlPost": "https://idserver.servizicie.interno.gov.it/idp/profile/SAML2/POST/SSO",
        "SingleSignOutServiceUrlPost": "https://idserver.servizicie.interno.gov.it/idp/profile/SAML2/POST/SLO",
        "SingleSignOnServiceUrlRedirect": "https://idserver.servizicie.interno.gov.it/idp/profile/SAML2/Redirect/SSO",
        "SingleSignOutServiceUrlRedirect": "https://idserver.servizicie.interno.gov.it/idp/profile/SAML2/Redirect/SLO",
        "Type": "StagingProvider"
      },

andreakarasho avatar May 21 '24 10:05 andreakarasho