eclipse-ee4j / eclipse-ee4j/soteria

WebSocket Support/Examples

Open
#191 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
72
Forks
34
PR merge metrics
No merged PRs in 30d

Description

As JSR 375 was supposed to cross the JEE spec, I see no mention anywhere of WebSocket support. One of the pain points of using JSR 356 is performing security checks such as `#isUserInRole` after the connection has been established as it only currently appears in `javax.websocket.server.HandshakeRequest`.

The JSR 356 spec. states:

> Websocket endpoints running in the Java EE platform must have full dependency injection support as described in the CDI specification.

Therefore, it should be possible to inject the `javax.security.SecurityContext` into a WebSocket `javax.websocket.Endpoint`, however I see no documentation or examples supporting this. Is this a valid assumption? I appreciate the horse may have already bolted, but I'd be surprised if this hasn't been discussed already.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the JSR 356 and JSR 375 references in the issue and searching the repository for WebSocket, Endpoint, and SecurityContext documentation or examples. Determine whether the stated injection assumption is supported; done means the support status is established and the relevant guidance or example is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authentication, documentation, security
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.