mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-195: Remove call to getRemoteUser() and just use the configured HTTP header.
This commit is contained in:
@@ -70,11 +70,8 @@ public class AuthenticationProviderService {
|
||||
// Pull HTTP header from request if present
|
||||
HttpServletRequest request = credentials.getRequest();
|
||||
if(request != null) {
|
||||
// Try getRemoteUser(), first
|
||||
String username = request.getRemoteUser();
|
||||
// Check if that worked, if not, try the configured header.
|
||||
if(username == null)
|
||||
username = request.getHeader(confService.getHttpAuthHeader());
|
||||
// Get the username from the header configured in guacamole.properties
|
||||
String username = request.getHeader(confService.getHttpAuthHeader());
|
||||
|
||||
if(username != null) {
|
||||
AuthenticatedUser authenticatedUser = authenticatedUserProvider.get();
|
||||
|
Reference in New Issue
Block a user