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 committed 2023-03-01 09:10:52 -08:00
1 parent 841190df5a
commit e51d548995
2 files changed
+2 -3

No files matched your search

@@ -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);
}