AnsweredAssumed Answered

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

Question asked by tomdenys on Jun 27, 2013
Latest reply on Oct 14, 2013 by muralidharand

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();
      }

Outcomes