function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
karimulla testingkarimulla testing 

small help form salesforce senior developers...............!! reg., auto login credentials>>

hi i had actually created the apexclass:
  

public class tpc{

    public PageReference ClickHere(){

     

        PageReference pr = new PageReference('https://www.c*******k*ar*k.ca/account/sign-in');   //this is third party application 
        pr.setRedirect(true);
        return pr;
    } 

}
 

 visualforce page :
<apex:page Controller="tpc" sidebar="false" showHeader="false">
<apex:form >
<html> 
<center><h>click  to direct login into ch*** p** application with out providing username and password</h></center>
</html>
<div align="center" draggable="false" >
<apex:commandButton action="{!ClickHere}" value="Click Here" />
</div>
</apex:form>
</apex:page>

After login into salesforce i had created a visualforce tab as "login" and 
on clicking the " click here " button provided in it .. it is redirecting to the url provided at apexclass i.e (https://www.c*******k*ar*k.ca/account/sign-in) we should provide username and password in this application and login into it..
//////////
my question is when you click on the "clickHere " button it should automatically redirect  to main page without asking or providing the username and password  or credentials every time.. is this possible here in salesforce ..... 
any other procedurce or links or pdf or codes how can we do it ... please provide your valuable coments.....

i hope i vill receive more commets,, it will be helpful and appreciated