cancel
Showing results for 
Search instead for 
Did you mean: 

Webscript custom authenticator

alexis
Champ in-the-making
Champ in-the-making
I want to use HTTP API in order to integrate alfresco functionnality into another webapp. This webapp kwnow the alfresco's username, but not his password.
Do you think it' s possible to implement a custom WebScriptServletAuthenticator  which authenticate user with his username ? (I will secure this Authenticator to only accept request from the webapp server)
2 REPLIES 2

davidc
Star Contributor
Star Contributor
If your web app is essentially performing the authentication, then yes - otherwise, you'll be allowing free access to the repository.  Maybe that's what you want.

Basically, you can develop an authenticator similar to the JSR-168 authenticator.  You just need to pull the username and then 'run as' that user.

See JSR68PortletAuthenticator.java for an example.

andy
Champ on-the-rise
Champ on-the-rise
Hi

An authentication filter to do just this exists to support SiteMinder and IChains. The user name as taken from a request header. You need to use SSL between you SSO/Redirection layer and alfresco and disable normal authentication.

Andy