Sunday, March 11, 2012

Pass user credentials to ajax webservice call

I think the key is the following line in the web.config:





<addname="ScriptModule"preCondition="integratedMode"type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>



this line is automatically added to the web.config when using the ajax templates.

the attributepreCondition="integratedMode" makes sure that the current authenticated user crendtials are used when calling a webservice via the scriptmodule.

No comments:

Post a Comment