cancel
Showing results for 
Search instead for 
Did you mean: 

Get current user credentials. No the ticket

isloat
Champ in-the-making
Champ in-the-making
Hi,
I have a web application that is executed on clicking a new option that I have added to the documents of the "Document Library". Clicking it, is executed a js that redirects to my application.

Is any way to extract the user credentials to authenticate against my application? Because I don't want to ask the user & pass again.
If it isn't possible to get the user and password, is possible to get any different token? Like SAML token for example or something like that. But not the "Alfresco ticket" because I assume that this ticket only  works to re-authenticate in Alfresco.

In addition, I have configured and LDAP to share the users between Alfresco and my web application. So, If I can get the credentials of the current Alfresco user and send it to my application, I will be able to authenticate this user in my web application.

I hope that somebody can help, because I 'm having many troubles to find a solution.

Thanks a lot!
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
No you can't retrieve the password.    And it would be a serious bug if you could.

What you probably want to do is to have some sort of SSO solution so that both Alfresco and your web app trust your authentication system token.

isloat
Champ in-the-making
Champ in-the-making
Exactly!
Maybe if I use some external authentication subsystem, does solves the problem? (http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems#External)
But I don't want to change how I'm authenticating in Alfresco, I want to use Alfresco's credentials in other system. Because as I understand, authentication subsystems are made to change the way you authenticate against Alfresco, aren't they?

Thanks for your quick reply!