Hi All,

At EMM/IoTs UI web app level,
for setting up an OAuth token pair for a newly authenticated user,
we require the use of tenant-based client app credentials.

These credentials will be retrieved by the provided tenant domain of the
authenticated user
and it seems that currently the particular information is retrieved via a
jaggery wrapper function called
"carbon.server.tenantDomain({username: username})" to the underneath
user-mgt OSGi service of the default pack.

This direct coupling of backend OSGi services with the UI is not encouraged
as that creates an unnecessary requirement
such that UI jaggery app and the carbon user management OSGi service to
co-exist in the same server.

Thus, I am bringing in the concern of $subject.

We would be able to easily provide a REST API for this at device-mgt api
layer.
But, due to the fact that such an API is OAuth token protected, this is
again not a solution
because by this point of time, the logged-in user has not even received a
token.

As a result, current suggestion is to do a SOAP webservice call using
basic-auth to
user management admin services and retrieve tenant information.

Cheers,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to