Authenticating w/ Team Pulse API using Windows Account

Thread is closed for posting
2 posts, 0 answers
  1. Tim
    Tim avatar
    1 posts
    Member since:
    Feb 2014

    Posted 27 Feb 2014 Link to this post

    Good morning,

    Following the guides and example projects I decided to use the API to do some out of band work.  Our instance of TeamPulse uses Windows Integrated Authentication.  Using the provided examples I fashioned my AJAX call as such:

            url: "[OURURL]" + '/Authenticate/WRAPv0.9',
            data: {
                wrap_client_id: 'uri:TeamPulse',
                wrap_username: user,
                wrap_password: password
            type: "POST",
            success: function (data) {

    Then in my form I entered my credentials as such:  [domain]\[username]  , [password].  It seems that this is an invalid way of passing windows credentials to the API as I get a response with "An error occurred while processing your request".  It doesn't appear that there is any other information.  If I use a bad username or password that doesn't exist I get an expected 401.

    Reading though the documentation I don't see a clear way to play nice with integrated authentication.  

    I'm probably just missing something straightforward or just don't clearly understand what the TeamPulse authentication expects or can accept.  Any direction on this would be greatly appreciated.  Thanks!

  2. Diana
    Diana avatar
    24 posts

    Posted 27 Feb 2014 Link to this post


    I am very happy that you are interested in TeamPulse and the REST API.
    Unfortunately, we don't support windows authentication via ajax request. You could achieve this via .net sdk. As workaround I could propose to you to display teampulse login page to the users and after that redirect them to you page, something like http://server:9898/Authentication/Restrict?ReturnUrl=[your_url].
    If windows authentication is very important for you we could try supply a sample, but we will need some time.

    I hope this will be helpful for you.

Back to Top