GUACAMOLE-195: Add some spacing around comments and if statements to make things more readable.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/bc5f8888 Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/bc5f8888 Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/bc5f8888 Branch: refs/heads/master Commit: bc5f88884b99f4f7c8b9b7ad61ade491497530fb Parents: 4faa806 Author: Nick Couchman <[email protected]> Authored: Fri Feb 3 15:06:47 2017 -0500 Committer: Nick Couchman <[email protected]> Committed: Fri Feb 3 15:06:47 2017 -0500 ---------------------------------------------------------------------- .../guacamole/auth/header/AuthenticationProviderService.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/bc5f8888/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java ---------------------------------------------------------------------- diff --git a/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java b/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java index 7adb100..e64183c 100644 --- a/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java +++ b/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java @@ -70,6 +70,7 @@ public class AuthenticationProviderService { // Pull HTTP header from request if present HttpServletRequest request = credentials.getRequest(); if (request != null) { + // Get the username from the header configured in guacamole.properties String username = request.getHeader(confService.getHttpAuthHeader()); @@ -78,6 +79,7 @@ public class AuthenticationProviderService { authenticatedUser.init(username, credentials); return authenticatedUser; } + } // Authentication not provided via header, yet, so we request it.
