6 Replies Latest reply on Sep 22, 2016 2:49 PM by keriw RSS
    jpinto Explorer

    Configuration table on authenticator extension

    Is it possible to have a configuration table (like some extensions have) in a custom authenticator extension ?

     

    I have the code and metadata posted below, which via annotations defines a configuration table on the authenticator. The extension is imported sucessfully, and the authenticator works as expected, the only problem is that the configuration page is missing.

     

    What am I doing wrong?

     

    Thanks,

     

    Joao Pinto

     

    @ThingworxConfigurationTableDefinitions(

      tables={

      @ThingworxConfigurationTableDefinition(name="ConfigTableExample1",

      description="Example 1 config table", isMultiRow=false,

      dataShape = @ThingworxDataShapeDefinition( fields = {

      @ThingworxFieldDefinition(name="field1",description="",baseType=

      "STRING"),

      @ThingworxFieldDefinition(name="columnD",description="",baseType=

      "USERNAME")}

      )

      )

      }

    )

    public class TestAuthenticator extends CustomAuthenticator {

     

    ...

     

    }

     

    metadata.xml :

     

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>

    <Entities>

        <ExtensionPackages>

            <ExtensionPackage dependsOn="" description="" minimumThingWorxVersion="6.6.0" name="Test Authenticator" packageVersion="1.0" vendor="xx">

                <JarResources>

                    <FileResource description="" file="testauthenticator.jar" type="JAR"/>

                </JarResources>

            </ExtensionPackage>

        </ExtensionPackages>

        <Authenticators>

            <Authenticator aspect.isEditableExtensionObject="true" className="auths.TestAuthenticator" description="" enabled="true" name="MyAuthenticator" priority="1" />

        </Authenticators>

    </Entities>