GUACAMOLE-256: Mark NoAuth as deprecated. Log warning if NoAuth is used.

This commit is contained in:
Michael Jumper
2017-03-26 20:44:56 -07:00
parent 3188adb89f
commit 2c8dbadec5
2 changed files with 6 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ import org.xml.sax.helpers.XMLReaderFactory;
* </config> * </config>
* </configs> * </configs>
*/ */
@Deprecated
public class NoAuthenticationProvider extends SimpleAuthenticationProvider { public class NoAuthenticationProvider extends SimpleAuthenticationProvider {
/** /**
@@ -115,6 +116,10 @@ public class NoAuthenticationProvider extends SimpleAuthenticationProvider {
*/ */
public NoAuthenticationProvider() throws GuacamoleException { public NoAuthenticationProvider() throws GuacamoleException {
environment = new LocalEnvironment(); environment = new LocalEnvironment();
logger.warn("The \"NoAuth\" extension is **DEPRECATED**! This "
+ "extension will be removed from the Guacamole codebase "
+ "entirely in a future release. Please consider writing an "
+ "extension using Guacamole's extension API instead.");
} }
@Override @Override

View File

@@ -2,7 +2,7 @@
"guacamoleVersion" : "0.9.12-incubating", "guacamoleVersion" : "0.9.12-incubating",
"name" : "Disabled Authentication", "name" : "Disabled Authentication (DEPRECATED)",
"namespace" : "guac-noauth", "namespace" : "guac-noauth",
"authProviders" : [ "authProviders" : [