Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HWIOAuthBundle Connect Service #138

Closed
lightglitch opened this issue Oct 24, 2012 · 1 comment
Closed

HWIOAuthBundle Connect Service #138

lightglitch opened this issue Oct 24, 2012 · 1 comment

Comments

@lightglitch
Copy link

Hi,

I have the login authentication working with facebook and google, but I'm unable register a social network if the user is already logged in.

For example I do a login with facebook and then I try to add a google account it calls the google authentication url with the redirect url pointing to connectServiceAction.

This all looks correct but because the configured url in google api is "login/login-check" it gives an error saying that the url is incorrect.

The url generated is different in case of the login or if you just want to associate to an existing acount

OAuthUtils:getAuthorizationUrl

        return $resourceOwner->getAuthorizationUrl(
            $connect && $hasUser
                ? $this->generateUrl('hwi_oauth_connect_service', array('service' => $name), true)
                : $this->generateUri($checkPath)
        );

and google and facebook don't allow that. How can I fix this?

PS: This probably is not a bundle issue but I didn't know where to ask for help, thx.

@lightglitch
Copy link
Author

Google does allow more that one redirect url but facebook doesn't ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant