GUACAMOLE-136: Rename overly-generic AuthenticationProviderService to UserVerificationService.

This commit is contained in:
Michael Jumper
2016-12-05 21:33:50 -08:00
parent c3c553a899
commit e6f0b7df17
3 changed files with 6 additions and 7 deletions

View File

@@ -78,11 +78,11 @@ public class DuoAuthenticationProvider implements AuthenticationProvider {
public UserContext getUserContext(AuthenticatedUser authenticatedUser)
throws GuacamoleException {
AuthenticationProviderService authProviderService =
injector.getInstance(AuthenticationProviderService.class);
UserVerificationService verificationService =
injector.getInstance(UserVerificationService.class);
// Verify user against Duo service
authProviderService.verifyAuthenticatedUser(authenticatedUser);
verificationService.verifyAuthenticatedUser(authenticatedUser);
// User has been verified, and authentication should be allowed to
// continue

View File

@@ -72,9 +72,9 @@ public class DuoAuthenticationProviderModule extends AbstractModule {
bind(Environment.class).toInstance(environment);
// Bind Duo-specific services
bind(AuthenticationProviderService.class);
bind(ConfigurationService.class);
bind(DuoWebService.class);
bind(UserVerificationService.class);
}

View File

@@ -33,10 +33,9 @@ import org.apache.guacamole.net.auth.credentials.CredentialsInfo;
import org.apache.guacamole.net.auth.credentials.GuacamoleInsufficientCredentialsException;
/**
* Service providing convenience functions for the Duo AuthenticationProvider
* implementation.
* Service for verifying the identity of a user against Duo.
*/
public class AuthenticationProviderService {
public class UserVerificationService {
/**
* Service for retrieving Duo configuration information.