mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixing few issues after testing
This commit is contained in:
parent
7117fdeafc
commit
b14ddd609a
@ -84,7 +84,7 @@ public class MQTTEventAdapterFactory extends OutputEventAdapterFactory {
|
||||
clearSession.setDisplayName(resourceBundle.getString(MQTTEventAdapterConstants.ADAPTER_CONF_CLEAN_SESSION));
|
||||
clearSession.setRequired(false);
|
||||
clearSession.setOptions(new String[]{"true", "false"});
|
||||
clearSession.setDefaultValue("true");
|
||||
clearSession.setDefaultValue("false");
|
||||
clearSession.setHint(resourceBundle.getString(MQTTEventAdapterConstants.ADAPTER_CONF_CLEAN_SESSION_HINT));
|
||||
|
||||
// set Quality of Service
|
||||
|
||||
@ -133,7 +133,7 @@ public class DeviceAccessBasedMQTTAuthorizer implements IAuthorizer {
|
||||
return false;
|
||||
} catch (FeignException e) {
|
||||
oAuthRequestInterceptor.resetApiApplicationKey();
|
||||
if (e.getMessage().contains(GATEWAY_ERROR_CODE)) {
|
||||
if (e.getMessage().contains(GATEWAY_ERROR_CODE) || e.status() == 404) {
|
||||
log.error("Failed to connect to the device authorization service.");
|
||||
} else {
|
||||
log.error(e.getMessage(), e);
|
||||
|
||||
@ -125,6 +125,7 @@ public class OAuthRequestInterceptor implements RequestInterceptor {
|
||||
|
||||
public void resetApiApplicationKey() {
|
||||
apiApplicationKey = null;
|
||||
tokenIssuerService = null;
|
||||
}
|
||||
|
||||
private static Client getSSLClient() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user