This is a migrated thread and some comments may be shown as answers.

Authenticating w/ Team Pulse API using Windows Account

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tim
Top achievements
Rank 1
Tim asked on 27 Feb 2014, 04:27 PM
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:

$.ajax({
        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!








1 Answer, 1 is accepted

Sort by
0
Diana
Telerik team
answered on 27 Feb 2014, 04:56 PM
Hello,

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.

Regards,
Diana
Telerik
Tags
General Discussions
Asked by
Tim
Top achievements
Rank 1
Answers by
Diana
Telerik team
Share this question
or