user id and password for http://127.0.0.1:8080/alfresco/api/AuthenticationService

cancel
Showing results for 
Search instead for 
Did you mean: 
karu1305
Member II

user id and password for http://127.0.0.1:8080/alfresco/api/AuthenticationService

HI Everyone,

i am working as a .net developer and I am new to alfresco.

We have a requirement to connect alfresco repository and read documents content and system properties along with aspect and custom type(model ).

to explore and to know about the alfresco , i have installed local alfresco environment and i am able to login alfresco share and see the folders and repository.

But using C# code i am not able to log in to alfresco.

i am using alfresco authentication service.

http://127.0.0.1:8080/alfresco/api/AuthenticationService

its asking me user and password and i trying to give the same user and password which is i am giving while login to alfresco share.

but the same is not working.

Can someone pls help as i have to write entire and login is just a entry point.

thanks. 

3 Replies
francesco_forna
Partner

Re: user id and password for http://127.0.0.1:8080/alfresco/api/AuthenticationService

Hi,

you should read this article:

 

calvo
Senior Member

Re: user id and password for http://127.0.0.1:8080/alfresco/api/AuthenticationService

Hi,

Using C# you can find some examples on Internet about OpenCmis.

https://netic360.blogspot.com/2017/04/cmis-conexion-con-alfresco.html

Regards,

clv

karu1305
Member II

Re: user id and password for http://127.0.0.1:8080/alfresco/api/AuthenticationService

Thanks for your reply...

but where these services deploy.

I have written below code in C# but its not working. Its asking me user id and password and i am giving the same password which i am using to login "http://127.0.0.1:8080/share/page/console/admin-console/application" my local alfresco env.

what am i missing here.pls help.

// Initializing the URL of webservices used in this adaptor

mAuthenticationService.Url = "http://127.0.0.1:8080/alfresco/api/AuthenticationService";

mAccessControlService.Url = "http://127.0.0.1:8080/alfresco/api/AccessControlService";

// ends here

// making the connection with Alfresco repository

AuthenticationResult lAuthenticationResult = mAuthenticationService.startSession(mUserId, lPassword);

mTicket = lAuthenticationResult.ticket;

// Adding Security Header

AddSecurityHeader(mRepositoryService);

// ends here

if (mTicket != null)

{

//Checking if the connection is made than true is returned

lconnect = true;

}

}