Access Thing property inside custom Authenticator
Hello,
I am attempting to access a thing property from inside a service on a custom authenticator extension.
Inside a thingshape I am able to access the thing property like below with no issue
@ThingworxServiceDefinition(name = "Start", aspects = {"isAsync:false"})
@ThingworxServiceResult(name = "Result", baseType = "STRING")
public String Start() throws Exception {
Thing apiConfig = ThingUtilities.findThing("MESLite.Thing.APIConfig");
return apiConfig.getPropertyValue("BasePath").getStringValue();
}
When inside the Authenticator I get a null pointer exception on
apiConfig.getPropertyValue("BasePath").getStringValue();
Is it possible to access thing property inside the custom authenticator?

