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
Edgar MoranEdgar Moran 

Google - Salesforce OpenID No_Oauth_Token: Access token was not returned

Hi I just followed all instruction from the Salesforce documentation about how to setup OpenID to login Salesforce with google apps. it seems all is good until I clic on the "Allow" button in the Authorization page. after that I'm getting this screen:

User-added image

Important to mention is I also have my registration handler in my Auth
global class GoogleOpenIdRegistrationHandler implements Auth.RegistrationHandler {
    global User createUser(Id portalId, Auth.UserData data){

        System.debug('Auth Data: '+data);
        // If the email scope has been set we will receive the users email address      
        String email =;
        if (email == null) return null;

        // Make sure the email matches our domain
        // TODO: Uncomment and update as necessary
        // if (!email.contains('')) return null;

        // Attempt to find a user with the same email address
        User u;
        try {
            u = [Select Id, FirstName, LastName, Email, Username from User Where Username = :email];
        catch (Exception e){
            return null;

        return u;

    global void updateUser(Id userId, Id portalId, Auth.UserData data){
        // DO Nothing in the update Scenario

and the callback URL has been taken after I saved the Auth Provider configuration then updated in google api console.
Do I missing something?
Hi Edgar i am stuck with this error . You got the answer yet.
ashok kondru 1ashok kondru 1
I'm having the same issue with authenticating with FitBit OAuth. Has anyone been able to set up a successful connection?
Elvedin Babic 4Elvedin Babic 4
same here