• Elvedin Babic 4
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
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 = data.email;
        if (email == null) return null;

        // Make sure the email matches our domain
        // TODO: Uncomment and update as necessary
        // if (!email.contains('@yourdomain.com')) 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, 
I am trying to login salesforce community, when i login the third part site.
For this i have created
1.Auth. Provider as open ID connect by giving value for customerkey, enpointURLs, customsecretes and all.
2. copy past the Test-Only Initialization URL in browser.
3. Given USer name and password in third party login page
4. After that i am getting following error:
              Error:There was a problem with your authentication attempt. Please try again. If you continue to encounter problems, contact your administrator.
           URL:hostname//_nc_external/identity/sso/ui/AuthorizationError?ErrorCode=No_Oauth_Token&ErrorDescription=Empty+Response


Giude me to get rid of this issue, tried in many ways like , created Connected App, Update Remote site setting etc. But No Luck. 
Hi, 
I am trying to login salesforce community, when I login the third part site. 
For this I have created 
1.Auth. Provider as open ID connect by giving value for customerkey, enpointURLs, customsecretes and all.
2. Copy past the Test-Only Initialization URL in browser.
3. Given User name and password in third party login page
4. After that I am getting following error:
              Error: There was a problem with your authentication attempt. Please try again. If you continue to encounter problems, contact your administrator.
           URL:hostname//_nc_external/identity/sso/ui/AuthorizationError?ErrorCode=No_Oauth_Token&ErrorDescription=Empty+Response

Guide me to get rid of this issue, tried in many ways like , created Connected App, Update Remote site setting etc. But No Luck. 
 
  • April 21, 2015
  • Like
  • 2