Hi,
I'm using Caringorm framework in my web application. The UI invokes webservice hosted in IIS. As of now I'm using windows authentication.
Authentication works perfectly in this mode.]
Now I wish to change authentication to IIS basic authentication.
Can anyone help me how can I achiev this?
Also I would like to encrypt the user credentials befor posting.
I'm trying with the below code and getting IE popups login box appearing everytime.
private function loadTranslationWSDL():void
{
var encoder:Base64Encoder = new Base64Encoder();
encoder.insertNewLines = false;
encoder.encode(portalSer.strUserName + ":" + portalSer.strPassword);
model.svcLocator.getWebService("svcCommon").httpHeaders = {AUTHORIZATION : "Basic " + encoder.toString()};
var translationToken:AsyncToken = model.svcLocator.getWebService("svcCommon").GetPortalUserTranslations ();
translationToken.addResponder(new ItemResponder(onGetPortalUserTranslationsResult,onTranslationsFault)) ;
}
North America
Europe, Middle East and Africa
Asia Pacific