Fix Authentication Handler Issue

Replaced the invalid value in the AuthenticationHandler file to support mutual SSL.
This commit is contained in:
Milan Perera 2019-04-09 13:25:46 +05:30
parent 35071ed27b
commit 20a4fb7b01

View File

@ -209,7 +209,7 @@ public class AuthenticationHandler extends AbstractHandler {
private String getDeviceType(String url) {
StringTokenizer parts = new StringTokenizer(url, "/");
while (parts.hasMoreElements()) {
if (parts.nextElement().equals("api")) {
if (parts.nextElement().equals("device-mgt")) {
return (String) parts.nextElement();
}
}