Skip to content

Commit 14468e8

Browse files
committed
Add principal in GlassfishRequestUpgradeStrategy
1 parent b148542 commit 14468e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/server/standard/GlassFishRequestUpgradeStrategy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ private boolean performUpgrade(HttpServletRequest request, HttpServletResponse r
165165

166166
RequestContext wsRequest = RequestContext.Builder.create().
167167
requestURI(URI.create(wsApp.getPath())).requestPath(wsApp.getPath()).
168+
userPrincipal(request.getUserPrincipal()).
168169
connection(connection).secure(request.isSecure()).build();
169170

170171
for (String header : headers.keySet()) {

0 commit comments

Comments
 (0)