GUACAMOLE-839: Ensure each NonceService instance has its own context (will not validate the nonces of other contexts).

This commit is contained in:
Michael Jumper
2023-01-26 11:30:51 -08:00
parent 841190df5a
commit e51d548995
2 changed files with 2 additions and 3 deletions

View File

@@ -20,6 +20,7 @@
package org.apache.guacamole.auth.openid;
import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
import org.apache.guacamole.auth.openid.conf.ConfigurationService;
import org.apache.guacamole.auth.sso.NonceService;
import org.apache.guacamole.auth.openid.token.TokenValidationService;
@@ -32,7 +33,7 @@ public class OpenIDAuthenticationProviderModule extends AbstractModule {
@Override
protected void configure() {
bind(ConfigurationService.class);
bind(NonceService.class);
bind(NonceService.class).in(Scopes.SINGLETON);
bind(TokenValidationService.class);
}