mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-136: Rename overly-generic AuthenticationProviderService to UserVerificationService.
This commit is contained in:
@@ -78,11 +78,11 @@ public class DuoAuthenticationProvider implements AuthenticationProvider {
|
|||||||
public UserContext getUserContext(AuthenticatedUser authenticatedUser)
|
public UserContext getUserContext(AuthenticatedUser authenticatedUser)
|
||||||
throws GuacamoleException {
|
throws GuacamoleException {
|
||||||
|
|
||||||
AuthenticationProviderService authProviderService =
|
UserVerificationService verificationService =
|
||||||
injector.getInstance(AuthenticationProviderService.class);
|
injector.getInstance(UserVerificationService.class);
|
||||||
|
|
||||||
// Verify user against Duo service
|
// Verify user against Duo service
|
||||||
authProviderService.verifyAuthenticatedUser(authenticatedUser);
|
verificationService.verifyAuthenticatedUser(authenticatedUser);
|
||||||
|
|
||||||
// User has been verified, and authentication should be allowed to
|
// User has been verified, and authentication should be allowed to
|
||||||
// continue
|
// continue
|
||||||
|
@@ -72,9 +72,9 @@ public class DuoAuthenticationProviderModule extends AbstractModule {
|
|||||||
bind(Environment.class).toInstance(environment);
|
bind(Environment.class).toInstance(environment);
|
||||||
|
|
||||||
// Bind Duo-specific services
|
// Bind Duo-specific services
|
||||||
bind(AuthenticationProviderService.class);
|
|
||||||
bind(ConfigurationService.class);
|
bind(ConfigurationService.class);
|
||||||
bind(DuoWebService.class);
|
bind(DuoWebService.class);
|
||||||
|
bind(UserVerificationService.class);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -33,10 +33,9 @@ import org.apache.guacamole.net.auth.credentials.CredentialsInfo;
|
|||||||
import org.apache.guacamole.net.auth.credentials.GuacamoleInsufficientCredentialsException;
|
import org.apache.guacamole.net.auth.credentials.GuacamoleInsufficientCredentialsException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service providing convenience functions for the Duo AuthenticationProvider
|
* Service for verifying the identity of a user against Duo.
|
||||||
* implementation.
|
|
||||||
*/
|
*/
|
||||||
public class AuthenticationProviderService {
|
public class UserVerificationService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service for retrieving Duo configuration information.
|
* Service for retrieving Duo configuration information.
|
Reference in New Issue
Block a user