401 Unauthorized error when trying to POST to our site with AD login

401 Unauthorized error when trying to POST to our site with AD login

This question has suggested answer(s)

I am trying out the BulkUpload Sample from the SDK. It works with one of our site which uses Telligent Community with normal login. But it returns 401 Unauthorized with another site which uses Telligent Enterprise and our Active Directory login. Anybody has any idea why?

All Replies
  • Hi Dan,

    I am not sure what you are planning to do with the bulk uploader, but I thought you might be interested in something we are getting ready to release as an add-on for the platform.  The new add-on is going to be called Media Magnificent which will bring 4 new media experiences to Telligent.  This product is built on top of the Media Galleries and adds a facebook like Photo Experience, a YouTube like video experience, an all new Audio Experience, and a traditional file experience.  Once of the coolest new features is our new mult-file uploader.  This new feature adds the ability for you to add optional titles, descriptions, or captions to your files as they are uploading.

    To get a better idea on what we are cooking up, I have attached a PDF containing some screen shots of what is to come in the very near future.  Please note that this version is a bit old and the actual release will have several added features. 

     

  • Hi Dan,

    I am guessing that the issue here is that you have AD enabled on your Community and therefore you will need to authenticate against AD in your request with code similar to below:

    // Create the Request

    HttpWebRequest request = WebRequest.Create(requestUrl) as HttpWebRequest;

    request.Headers.Add("Rest-User-Token", adminKeyBase64);

    // Set the Windows Authentication credentials

    request.Credentials = new NetworkCredential(ConfigurationManager.AppSettings["winAuthUsername"], ConfigurationManager.AppSettings["winAuthPassword"], ConfigurationManager.AppSettings["winAuthDomain"]);

    I hope this helps

    Adam

  • Hi Adam,

    Thank you for your answer. I tried this before but it did not help. I am still getting 401 error. Wonder why is that?

  • Hi Dan,

    I would suggest using Fiddler2 to look at the response and see if the header/response body etc give you any info on whats going on here. Also you could first validate read access by trying to just get the details of users using the endpoint: /api.ashx/v2/users.xml and see if that works first.

    Thanks

    Adam