mirror of https://github.com/OpenVidu/openvidu.git
Token map correctly updated when removing participants
parent
a4d79b6541
commit
c3b0c784b5
|
@ -162,7 +162,7 @@ public class RoomManager {
|
||||||
}
|
}
|
||||||
room.leave(participantId);
|
room.leave(participantId);
|
||||||
|
|
||||||
this.sessionIdTokenRole.get(roomName).remove(participantId);
|
this.sessionIdTokenRole.get(roomName).remove(participant.getName());
|
||||||
|
|
||||||
Set<UserParticipant> remainingParticipants = null;
|
Set<UserParticipant> remainingParticipants = null;
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||||
http.csrf().disable()
|
http.csrf().disable()
|
||||||
.authorizeRequests()
|
.authorizeRequests()
|
||||||
.antMatchers(HttpMethod.GET, "/getSessionId").authenticated()
|
.antMatchers(HttpMethod.GET, "/getSessionId").authenticated()
|
||||||
.antMatchers(HttpMethod.POST, "/getToken").authenticated()
|
.antMatchers(HttpMethod.POST, "/newToken").authenticated()
|
||||||
.and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
|
.and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue