WebSessionServerCsrfTokenRepository session fixation protection

Issue: gh-4842
This commit is contained in:
Rob Winch
2017-11-16 11:22:33 -06:00
parent 75a7c5268a
commit b19e14330f
2 changed files with 9 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ public class WebSessionServerCsrfTokenRepository
}
return exchange.getSession()
.doOnSuccess(session -> putToken(session.getAttributes(), token))
.flatMap(session -> session.changeSessionId())
.flatMap(r -> Mono.justOrEmpty(token));
}