Uploaded image for project: 'OpenId Connect'
  1. OpenId Connect
  2. OIDC-101

Cast Error Exception when the provider send back an unknown error

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.25
    • 1.24
    • Authenticator
    • None
    • Authentication of OIDC with Univention UCS oidc module
    • Unknown

    Description

      javax.servlet.ServletException: Failed to handle Resource Reference [path = authenticator/callback, endpoint = authenticator, pathSegments = [callback]]
      org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.handleResourceReference(ResourceReferenceHandlerServlet.java:161)
      org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.service(ResourceReferenceHandlerServlet.java:87)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
      org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:145)

      cause mère

      org.xwiki.resource.ResourceReferenceHandlerException: Failed to handle http servlet request
      org.xwiki.contrib.oidc.provider.internal.OIDCResourceReferenceHandler.handle(OIDCResourceReferenceHandler.java:110)
      org.xwiki.resource.internal.DefaultResourceReferenceHandlerChain.handleNext(DefaultResourceReferenceHandlerChain.java:79)
      org.xwiki.resource.internal.AbstractResourceReferenceHandlerManager.handle(AbstractResourceReferenceHandlerManager.java:82)
      org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.handleResourceReference(ResourceReferenceHandlerServlet.java:159)
      org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.service(ResourceReferenceHandlerServlet.java:87)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
      org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:145)

      cause mère

      java.lang.ClassCastException: com.nimbusds.oauth2.sdk.AuthorizationErrorResponse cannot be cast to com.nimbusds.oauth2.sdk.AuthorizationSuccessResponse
      org.xwiki.contrib.oidc.auth.internal.endpoint.CallbackOIDCEndpoint.handle(CallbackOIDCEndpoint.java:131)
      org.xwiki.contrib.oidc.provider.internal.OIDCResourceReferenceHandler.handle(OIDCResourceReferenceHandler.java:134)
      org.xwiki.contrib.oidc.provider.internal.OIDCResourceReferenceHandler.handle(OIDCResourceReferenceHandler.java:108)
      org.xwiki.resource.internal.DefaultResourceReferenceHandlerChain.handleNext(DefaultResourceReferenceHandlerChain.java:79)
      org.xwiki.resource.internal.AbstractResourceReferenceHandlerManager.handle(AbstractResourceReferenceHandlerManager.java:82)
      org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.handleResourceReference(ResourceReferenceHandlerServlet.java:159)
      org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.service(ResourceReferenceHandlerServlet.java:87)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
      org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:145)

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: