Token map correctly updated when removing participants

pull/3/head
pabloFuente 2017-04-03 19:44:34 +02:00
parent a4d79b6541
commit c3b0c784b5
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ public class RoomManager {
}
room.leave(participantId);
this.sessionIdTokenRole.get(roomName).remove(participantId);
this.sessionIdTokenRole.get(roomName).remove(participant.getName());
Set<UserParticipant> remainingParticipants = null;
try {

View File

@ -36,7 +36,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
http.csrf().disable()
.authorizeRequests()
.antMatchers(HttpMethod.GET, "/getSessionId").authenticated()
.antMatchers(HttpMethod.POST, "/getToken").authenticated()
.antMatchers(HttpMethod.POST, "/newToken").authenticated()
.and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
}