You need to sign in to do that
Don't have an account?
jyothi d 7
Hi,
how pass encrypted login credentials in the url in salesforce ? i don't want to use SSO,
how pass encrypted login credentials in the url in salesforce ?
Hi,
how pass encrypted login credentials in the url in salesforce ? i don't want to use SSO,
you can append them in the URL and encrypt your URL
String URLLink = ‘Your URL/Parameters you want to encrypt’;
String encodedURL = EncodingUtil.urlEncode(targetString,’UTF-8′);
i write like this bt it is not passed in the url ,
Blob cryptoKey = Blob.valueOf('1234567890123456');
Blob data = Blob.valueOf(encrypt.Name);
Blob encryptedData = Crypto.encryptWithManagedIV('AES128', cryptoKey , data );
String b64Data = EncodingUtil.base64Encode(encryptedData);
encrypt.name = b64Data ;
PageReference pg = new PageReference ('/apex/EnD?un={!b64Data}');
pg.setRedirect(true);
return pg;
PageReference pg = new PageReference ('/apex/EnD?un={!b64Data}'); and paste the value here
i tried like this , bt its not working
String URL ='/apex/EnD?pw={!b64Data2}&un={!b64Data}';
system.debug('Here is your URL =' + URL);
Pagereference Pageref = New pagereference(URL);
pageRef.setRedirect(true);
system.debug('here is your Pageref ='+ Pageref);
return Pageref ;