Sami
Sami

Reputation: 564

Worklight Realm and ClassName Element

I was going through the following URL:

https://www-01.ibm.com/support/knowledgecenter/#!/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/devref/t_adapter_based_authenticator.html

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:

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.

Upvotes: 0

Views: 58

Answers (2)

Idan Adar
Idan Adar

Reputation: 44516

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.

Upvotes: 1

dhineshsundar
dhineshsundar

Reputation: 112

I would recommend not to go deep into How the IBM MobileFirst Security modules are implemented?

Instead, you can understand the purpose of implementation and how you can utilize those into your IBM MobileFirst Project.

To learn more about IBM Mobilefirst Authentication and Security go to the given link.

You can implement custom login modules and authenticators when the ones that are provided by default do not match your requirements.

Upvotes: 0

Related Questions