GUACAMOLE-96: Add API support for augmenting functionality of other extensions.

This commit is contained in:
Michael Jumper
2017-10-27 11:07:35 -07:00
parent 00d464b511
commit ffad1898b6
9 changed files with 100 additions and 0 deletions

View File

@@ -158,6 +158,20 @@ public class AuthenticationProviderFacade implements AuthenticationProvider {
}
@Override
public UserContext decorate(UserContext context,
AuthenticatedUser authenticatedUser,
Credentials credentials) throws GuacamoleException {
// Do nothing if underlying auth provider could not be loaded
if (authProvider == null)
return context;
// Delegate to underlying auth provider
return authProvider.decorate(context, authenticatedUser, credentials);
}
@Override
public void shutdown() {
if (authProvider != null)