GUACAMOLE-195: Add RAT plugin to extension; fix build issue from leftover logger() call.

This commit is contained in:
Nick Couchman
2017-01-30 13:39:25 -05:00
parent 9b4302c9a3
commit 88903880f9
2 changed files with 26 additions and 1 deletions

View File

@@ -95,6 +95,32 @@
</executions>
</plugin>
<!-- Verify format using Apache RAT -->
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.12</version>
<configuration>
<excludes>
<exclude>**/*.json</exclude>
<exclude>src/licenses/**/*</exclude>
</excludes>
</configuration>
<!-- Bind RAT to validate phase -->
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@@ -75,7 +75,6 @@ public class AuthenticationProviderService {
username = request.getHeader(confService.getHttpAuthHeader());
if (username != null) {
logger.debug("Authenticating with user {}", username);
AuthenticatedUser authenticatedUser = authenticatedUserProvider.get();
authenticatedUser.init(username, credentials);
return authenticatedUser;