PDA

View Full Version : Does Sencha support Window Authentication?



QuestSencha
28 Aug 2013, 2:14 AM
I have JSONP based web service running on IIS with basic authentication. In my Sencha web app I have a store with config listed below. When the store is loaded I am prompted for a username/password on the browser. It seems to be ignoring the username and password values. Please provide example of how to pass user name. password for a webservice with basic authentication.


Does Sencha support Window Authentication?





config: {
storeId: 'abcstore',
model: 'eLogBooks.model.abcList',
autoLoad: true,
sorters: 'StuffType',
proxy: {
type: 'ajax',
url: AppName.app.ServiceURL + '/GetabcList',
extraParams:{
SomeVariable: AppName.app.SomeVariable
},
reader: {
type: 'json',
rootProperty:'LstAbcEntity'
}
},
withCredentials: true,
disableCaching: true,
username:'cjsingh',
password:'SomePassword'

fmoseley
29 Aug 2013, 3:35 PM
Check this out:
http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html