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

This commit is contained in:
Michael Jumper committed 2018-01-13 17:22:48 -08:00
1 parent 00d464b511
commit ffad1898b6
9 files changed
+100

No files matched your search

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