I was going through the following URL:
which explains the Implementing adapter-based authenticators. which also what we are using in our project. However, the mysterious part for me is the <className>
element.
<className>com.worklight.integration.auth.AdapterAuthenticator</className>
My quires are:
<className>
value is taken? com.worklight.integration.auth.AdapterAuthenticator
inside WL?.<className>
element?I'm trying to understand what is inside this element and what are its parameters. Regardless my understanding why it is being used, I just want to go deeper in this class element.
The classname
node denotes which authenticator type will be used.
You cannot look into it. It is pre-bundled with Worklight.
In this case, it refers to the adapter authenticator. Using <classname>com.worklight.integration.auth.AdapterAuthenticator</classname>
means that the server-side part of the authenticator is defined in the adapter, and this is what you implement in adapter-based authentication. See the adapter authentication tutorial in the developer center.
You can also implement your own authenticator, in which case you will define a custom classname: <className>com.mypackage.MyCustomAuthenticator</className>
, as well as implement it. This class will then reside in your project under the server\java folder and will be part of your server once deployed. See the custom authentication tutorial in developer center.