WebSessionSecurityContextRepository changes session id

Fixes: gh-4842
This commit is contained in:
Rob Winch
2017-11-16 13:08:54 -06:00
parent b19e14330f
commit b7529be3d0
2 changed files with 68 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ public class WebSessionServerSecurityContextRepository
session.getAttributes().put(SESSION_ATTR, context);
}
})
.then();
.flatMap(session -> session.changeSessionId());
}
public Mono<SecurityContext> load(ServerWebExchange exchange) {