Hi,
We have one authentication subsystem outside of alfresco and once user is validated through that we system they are redirected to alfresco and we create the user in alfresco.
Our requirement is if user edit his profile like first name,last name, job profile etc then it has to be updated in alfresco as well as in the out side authentication sub system as well.
The outside authentication subsystem provides the web service for updating the profile,could you please let us know the best approach to achieve this.
I tried to call the web service from the js file like below but the connection is not established.
1) Create a endpoint in share config custom file:
<endpoint>
<id>my-endpoint</id>
<connector-id>http</connector-id>
<endpoint-url>my end point url</endpoint-url>
<identity>user</identity>
</endpoint>
2) In the js file tried to call the webscrvice
var connector = remote.connect("my-endpoint");
var result1 = connector.put("/api/url/",jsonUtils.toJSONString(paramsUpdate),
"application/json");
Let us know the best approach to achieve this.
Thanks,
Sabinay