Is there a way to control who access the force.com site externally besides using IP addresses?
I tried using a profile checker:
public static String ProfileCheck(){
String ReturnVal;
Profile Pro;
Pro = [Select Name from Profile where Id = :userinfo.getProfileId()];
if( Pro.Name == 'Chatter Free User' || Pro.Name == 'System Administrator' || Pro.Name == 'GRI'){
ReturnVal = 'true';
}
else{
ReturnVal = 'false';
}
return ReturnVal;
}
Then it would do a redirect if ReturnVal == False to send the person to the standard unauthorized page.
I realize this could easily be handled if they were all SFDC users because I could just enable it by profile. Which leads me to my one issue is that there will be about 5 or so people that are not SF users that need access to this site. Other than those 5 people it should remain protected from anyone else that tries to access it. Any Ideas outside of hard-coding IP addresses would be great.
Thanks in advance.