cancel
Showing results for 
Search instead for 
Did you mean: 

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

karu1305
Champ in-the-making
Champ in-the-making

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 3

francesco_forna
Confirmed Champ
Confirmed Champ

Hi,

you should read this article:

 

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;

}

}

calvo
Star Collaborator
Star Collaborator

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