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
Chirag_JoshiChirag_Joshi 

Site.com Google Authentication

I am  trying to provide the site user Google authentication, so that they can login to the site by there google credentials

The single sign on is working fine when i displayed it on the visualforce page

But when i am displaying the same page as a part of site.com site The page gives me error by clicking on Login

Also since site is public and anybody can access the sites and all i want to do si to register a user through their google account, do I need any user license for this

This is the VF Page and Controller. Please have a look. Thanks

VF Page:
<apex:page controller="MyController" showHeader="false" sidebar="false"> 
         <apex:form > 
                 <apex:pageBlock title="Login Here">
                               <apex:commandButton value="Login" action="{!login}"/> 
                 </apex:pageBlock>
         </apex:form>
</apex:page>

Apex Controller:
public  class MyController {
    public PageReference login(){
        
        return new PageReference('/services/auth/sso/Google_SSO');
    
    }
}

Error:
User-added image