Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

alfresco-js-api Login issues with Multi-Tenant User #219

Closed
vikashsingh009 opened this issue Apr 12, 2017 · 0 comments
Closed

alfresco-js-api Login issues with Multi-Tenant User #219

vikashsingh009 opened this issue Apr 12, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@vikashsingh009
Copy link

vikashsingh009 commented Apr 12, 2017

I have created user from Alfresco Admin Dashboard and try to pass username and password while calling alfresco-js-api ,here is the piece of code

var AlfrescoApi = require('alfresco-js-api');

var hostEcm = '<alfresco -host-ip>';

var alfrescoJsApi = new AlfrescoApi({
    hostEcm: hostEcm
});

alfrescoJsApi.login('username@tenat.com', 'password').then((data) => {
    console.log(data);
    done();
}, (error) => {
    console.log('error debug: ' + JSON.stringify(error));
});

its getting Un-Authorise Error while Returning Ticket

error debug: {"error":{"status":401,"response":{"req":{"method":"POST","url":"http://127.0.0.1:8080/alfresco/api/-default-/public/authentication/versions/1/tickets","data":{"userId":"vikash","password":"bizruntime@123"},"headers":{"user-agent":"node-superagent/3.4.1","authorization":"Basic dmlrYXNoOmJpenJ1bnRpbWUlNDAxMjM=","content-type":"application/json","accept":"application/json"}},"header":{"server":"Apache-Coyote/1.1","www-authenticate":"Basic realm="Alfresco -default- tenant"","content-length":"0","date":"Wed, 12 Apr 2017 11:33:16 GMT","connection":"close"},"status":401,"text":""}}}

@eromano eromano added the bug label Apr 12, 2017
@eromano eromano added this to the 1.3.1 milestone Apr 12, 2017
eromano added a commit that referenced this issue Apr 12, 2017
eromano added a commit that referenced this issue Apr 12, 2017
VitoAlbano pushed a commit that referenced this issue Apr 12, 2017
@eromano eromano self-assigned this Apr 12, 2017
@eromano eromano modified the milestones: 1.3.1, 1.4.0 Apr 21, 2017
@eromano eromano mentioned this issue Apr 26, 2017
eromano added a commit that referenced this issue Apr 26, 2017
magemello pushed a commit that referenced this issue Apr 27, 2017
@eromano eromano closed this as completed Apr 27, 2017
eromano added a commit that referenced this issue May 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants