3pillarlabs / socialauth

Java Library for authentication, getting profile, contacts and updating status on Google, Yahoo, Facebook, Twitter, LinkedIn, and many more providers.
https://3pillarlabs.github.io/socialauth/
MIT License
249 stars 141 forks source link

Google authentication Url #130

Open Swordmoon91 opened 5 years ago

Swordmoon91 commented 5 years ago

Hi, when i call getAuthenticationUrl

public void test() {
SocialAuthConfig config = SocialAuthConfig.getDefault();
        try {
            config.load();
            SocialAuthManager manager = new SocialAuthManager();
            manager.setSocialAuthConfig(config);
            // Callback url
            String successUrl = "http://localhost:8180/callbackauth";
            url_google = manager.getAuthenticationUrl("google", successUrl);

        } catch (Exception e) {

            e.printStackTrace();
        }
}

I get the followed exception on getAuthenticationUrl:

org.brickred.socialauth.exception.SocialAuthException: Failed to read response from That's only on google case.