webservices/wsoviplugin/src/wsovioauthclient.cpp
branchRCL_3
changeset 36 c5fabff9b552
parent 30 b72ea8487adb
child 37 1adb97a15c2f
--- a/webservices/wsoviplugin/src/wsovioauthclient.cpp	Thu Aug 19 10:59:30 2010 +0300
+++ b/webservices/wsoviplugin/src/wsovioauthclient.cpp	Tue Aug 31 16:18:26 2010 +0300
@@ -231,33 +231,15 @@
         
         TPtrC8 userName(KNullDesC8);
         TPtrC8 password(KNullDesC8);
-		TPtrC8 validator(KNullDesC8);
         if ( authenticationInfoPromptedFromUser )
             {
-		     TLSLOG_L(KSenCoreServiceManagerLogChannelBase  , KMinLogLevel," --- Setting username/password from authenticationInfoPromptedFromUser");
             userName.Set(authInfo().iUsername);
             password.Set(authInfo().iPassword);
             }
         else
             {
-		     TLSLOG_L(KSenCoreServiceManagerLogChannelBase  , KMinLogLevel," --- Setting username/password from IDP");
             userName.Set(iIdentityProvider->UserName());
             password.Set(iIdentityProvider->Password());
-
-			/* Below code will be required when we need to get validator from IDP but Now Crashes */
-			/*CSenElement* validatorTag(NULL);
-			if (iIdentityProvider->FrameworkId() == KDefaultOviFrameworkID)
-				{
-				CSenElement* el( NULL );
-				iIdentityProvider->AccountExtensions( el );
-				if (el)
-					{
-					_LIT8(KWSAccAttrAccountValidator,      "Validator");
-					validatorTag = el->Element(KWSAccAttrAccountValidator);
-					validator.Set(validatorTag->Content());
-				        TLSLOG_L(KSenCoreServiceManagerLogChannelBase  , KMinLogLevel,"CWSOviOAuthClient::ValidateL() - NCIM Valiadtor read successfully");
-					}
-				}*/
             }
         HBufC8* created(NULL);
         //CWSOviSessionContext* sessioncontext = iWSOviServiceSession->SessionContext();
@@ -277,8 +259,7 @@
         CreateBodyL(*version,
                     userName,
                     password,
-			*created/*,
-			validator*/);
+					*created);
         CleanupStack::PopAndDestroy(created);
 
         
@@ -391,12 +372,10 @@
             time -= TTimeIntervalMicroSeconds(diff.Int64());
             HBufC8* created = SenCryptoUtils::GetTimestampL(time);
             CleanupStack::PushL(created);
-							
             CreateBodyL(*version,
                         userName,
                         password,
-                        *created/*,
-			validator*/);
+                        *created);
             CleanupStack::PopAndDestroy(created);
             retVal = iAuthSession->SubmitL(*iBody, *transPropAsXml, *this, response);
             aSession.SetTransportL(ipTransport);//ownership moved
@@ -754,7 +733,7 @@
     return retVal; 
     }
 
-void CWSOviOAuthClient::CreateBodyL(const TDesC8& aXmlNs, const TDesC8& aUsername, const TDesC8& aPassword, const TDesC8& aCreated, const TDesC8& aValidator)
+void CWSOviOAuthClient::CreateBodyL(const TDesC8& aXmlNs, const TDesC8& aUsername, const TDesC8& aPassword, const TDesC8& aCreated)
     {
     if(aPassword == KNullDesC8())
     	{
@@ -765,8 +744,7 @@
     HBufC8* nonce = SenCryptoUtils::GetRandomNonceL();
     CleanupStack::PushL(nonce);
     HBufC8* passDec = SenXmlUtils::DecodeHttpCharactersLC( aPassword );
-	HBufC8* digest = CWSOviUtils::DigestAuthStringL(*nonce, aCreated, aUsername, *passDec, aValidator);
-
+    HBufC8* digest = CWSOviUtils::DigestAuthStringL(*nonce, aCreated, aUsername, *passDec);
     CleanupStack::PopAndDestroy(passDec);
     CleanupStack::PushL(digest);