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

Auth

3 Answers 69 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.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 20 Jun 2012, 12:45 PM
Is there any way to authenticate via javascript right now?

3 Answers, 1 is accepted

Sort by
0
Ryan
Telerik team
answered on 20 Jun 2012, 05:50 PM
Hello,

If you have the authorization service enabled in your TeamPulse web.config, it should be possible to use javascript to authenticate with TeamPulse.

To enable the authorization service, add or un-comment the following into the TeamPulse web.config (note: it may already be in there).

<system.web.extensions>
  <scripting>
    <webServices>
      <authenticationService enabled="true" requireSSL="false" />
    </webServices>
  </scripting>
</system.web.extensions>

This service is not used by TeamPulse directly, but can be used by other applications to authenticate with TeamPulse. However, it only works for forms (username and password) accounts, and not for windows credentials accounts.

You should be able to call this service from javascript in a manner something like what is shown here: http://msdn.microsoft.com/en-us/library/bb398896.aspx 

If that implementation seems a bit complex, you may be able to search around for a simpler one.

Greetings,
Ryan
the Telerik team
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 20 Jun 2012, 05:52 PM
Thanks, I'll try!

Quick Q though...on an update...would the webconfig get deleted and replaced so I'd have to go re-add that?
0
Ryan
Telerik team
answered on 20 Jun 2012, 06:58 PM
Hello,

Unfortunately, you are correct. The TeamPulse installer will override any changes to web.config files, and you will need to make those changes again manually. This is an annoyance, and we hope to improve it in the future.

Greetings,
Ryan
the Telerik team
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Ryan
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or