cancel
Showing results for 
Search instead for 
Did you mean: 

How can i use the windows credentials to create an alfresco session with c#

tomdenys
Champ in-the-making
Champ in-the-making

How can i use the windows credentials to create an alfresco session with c#


  public ISession CreateSession()
      {
      Dictionary<string, string> parameters = new Dictionary<string, string>();

      parameters[SessionParameter.BindingType] = BindingType.AtomPub;
      parameters[SessionParameter.AtomPubUrl] = this.configAdapter.AlfrescoAtomPubUrl;
      parameters[SessionParameter.User] = this.configAdapter.AlfrescoUser;
      parameters[SessionParameter.Password] = this.configAdapter.AlfrescoPassword;
      SessionFactory factory = SessionFactory.NewInstance();
      factory.GetRepositories(parameters);
   
      return factory.GetRepositories(parameters)[0].CreateSession();
      }
1 REPLY 1

muralidharand
Star Contributor
Star Contributor
Hi,
Have you configured alfresco authentication sub-system to use windows authentication?

Regards
Murali.