cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication

nm_santos
Champ in-the-making
Champ in-the-making
Hello,

I'm not sure where this question should be, I posted it also on the web service forums.

All the examples require a user/password combination before using the repository.

I've got alfresco with integrated with AD + SSO.

Now, in my application, I would like to do something like this:

public static void main(String[] args) throws Exception
   {
                 AD_USER = …
                 AD_PASSWORD = …
      // Start the session
      AuthenticationUtils.startSession(AD_USER, AD_PASSWORD);

The User is the same as the windows User, so I've no problem fetching it.

But what about the password? There must be a way to do this in order to authenticate with the service.

Regards,
Nuno.
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
These examples are not using any SSO configuration, that's why you need to provide username and password.
Working on Alfresco extensions you don't need to provide the password, but you should work on a different scenario.
That example that you have post here, is related to show how create an Alfresco embedded repository in your custom Java application.

Do you need to embed Alfresco in a standard Java application?

nm_santos
Champ in-the-making
Champ in-the-making
These examples are not using any SSO configuration, that's why you need to provide username and password.
Working on Alfresco extensions you don't need to provide the password, but you should work on a different scenario.
That example that you have post here, is related to show how create an Alfresco embedded repository in your custom Java application.

Do you need to embed Alfresco in a standard Java application?


Hi,

No.

I want my application to be able to send/download files to the alfresco repository withough having to ask it's user for the username/password combination each time he wants to do it.

I can't find any solution to this.

Regards,
Nuno.