mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUACAMOLE-524: Added attributes in ModeledAuthenticatedUser
This commit is contained in:
@@ -26,6 +26,11 @@ import org.apache.guacamole.net.auth.AuthenticatedUser;
|
|||||||
import org.apache.guacamole.net.auth.AuthenticationProvider;
|
import org.apache.guacamole.net.auth.AuthenticationProvider;
|
||||||
import org.apache.guacamole.net.auth.Credentials;
|
import org.apache.guacamole.net.auth.Credentials;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Associates a user with the credentials they used to authenticate, their
|
* Associates a user with the credentials they used to authenticate, their
|
||||||
* corresponding ModeledUser, and the AuthenticationProvider which produced
|
* corresponding ModeledUser, and the AuthenticationProvider which produced
|
||||||
@@ -79,6 +84,7 @@ public class ModeledAuthenticatedUser extends RemoteAuthenticatedUser {
|
|||||||
super(authenticatedUser.getAuthenticationProvider(), authenticatedUser.getCredentials());
|
super(authenticatedUser.getAuthenticationProvider(), authenticatedUser.getCredentials());
|
||||||
this.modelAuthenticationProvider = modelAuthenticationProvider;
|
this.modelAuthenticationProvider = modelAuthenticationProvider;
|
||||||
this.user = user;
|
this.user = user;
|
||||||
|
this.setAttributes(authenticatedUser.getAttributes());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user