src/org/ohmage/cache/KeycloakCache.java
public static Boolean isEnabled() {
		Boolean featureEnabled;
		try {
			featureEnabled = 
					StringUtils.decodeBoolean(
							PreferenceCache.instance().lookup(
									PreferenceCache.KEY_KEYCLOAK_AUTH_ENABLED));
		}
		catch(CacheMissException e) {
			featureEnabled = ServerConfig.DEFAULT_KEYCLOAK_AUTH_ENABLED;
		}
		
		return (validConfig && featureEnabled);
	}
/*
	 * A check to quickly ensure that keycloak is both enabled and properly
	 * configured prior to use in the app.  Pulling data from preference cache
	 * here to simplify the logic in the request handlers.
	 * 
	 * @returns true if keycloak is setup and enabled, false in all other cases.
	 */
A check to quickly ensure that keycloak is both enabled and properly
configured prior to use in the app.  Pulling data from preference cache
here to simplify the logic in the request handlers.

@returns true if keycloak is setup and enabled, false in all other cases.
A check to quickly ensure that keycloak is both enabled and properly configured prior to use in the app . Pulling data from preference cache here to simplify the logic in the request handlers . @returns true if keycloak is setup and enabled false in all other cases .
public static Boolean isEnabled() {
		Boolean featureEnabled;
		try {
			featureEnabled = 
					StringUtils.decodeBoolean(
							PreferenceCache.instance().lookup(
									PreferenceCache.KEY_KEYCLOAK_AUTH_ENABLED));
		}
		catch(CacheMissException e) {
			featureEnabled = ServerConfig.DEFAULT_KEYCLOAK_AUTH_ENABLED;
		}
		return (validConfig && featureEnabled);
	}
public static Boolean isEnabled ( ) { Boolean featureEnabled ; try { featureEnabled = StringUtils . decodeBoolean ( PreferenceCache . instance ( ) . lookup ( PreferenceCache . KEY_KEYCLOAK_AUTH_ENABLED ) ) ; } catch ( CacheMissException e ) { featureEnabled = ServerConfig . DEFAULT_KEYCLOAK_AUTH_ENABLED ; } return ( validConfig && featureEnabled ) ; }
A check to quickly ensure that keycloak is both enabled and properly
 configured prior to use in the app.
A check to quickly ensure that keycloak is both enabled and properly configured prior to use in the app .