Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-628

Provide support for injecting Identity bean for web socket-based services

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • PLINK_2.6.0.CR5
    • BASE
    • None

      A typical websocket-based application may use a combination of REST and websocket endpoints, with the following security config for setting the identity state:

      builder
      .identity()
      .stateless()

      Unfortunately there is no such thing as request scope for a websockets message handler method, so attempting to inject the Identity bean results in the following exception:

      org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped

              sbryzak@redhat.com Shane Bryzak (Inactive)
              sbryzak@redhat.com Shane Bryzak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: