Futur
Futur

Reputation: 8492

IBM MobileFirst: User device ID mapping without security realm

The objective is : we have to connect to OAUTH based web service to authenticate a user. Once the OAUTH responds back with success, we have to create a user id mapping initiated.

What I'm able to complete is: create security test & realm and added it to an adapter. With this when i tried to invoke a test HTTP/XML service from MobileFirst, I'm able to see the device user mapping in the console.

Question is: Is it mandatory to have security test/realm to have this mapping tone initiated or can we create a UserIdentity object ?

Upvotes: 1

Views: 247

Answers (1)

Shmulik Bardosh
Shmulik Bardosh

Reputation: 299

You can create a user identity object without a security-test but you must use some realm! The realm name is a mandatory property for the WL.Server.setActiveUser(Realm name, UserIdentity object) API and also for the WL.Client.getLoginName(Realm name) API.

Upvotes: 2

Related Questions