I want to use HybridAuth to login with Google.
[...]
echo $this->api->authorizeUrl( $parameters );
return true;
Hybrid_Auth::redirect( $this->api->authorizeUrl( $parameters ) );
}
If I echo the url which is used to login:
https://accounts.google.com/o/oauth2/auth?client_id=XXXCLIENTXXX&redirect_uri=http%3A%2F%2Fwww.XXX.de%2Fsociallogin%3Fhauth.done%3DGoogle&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&access_type=online
and put it in the browser, I have no problems.
But if HybridAuth uses the redirect() function the url looks like this:
https://accounts.google.com/o/oauth2/auth?client_id=XXXCLIENTIDXXX&redirect_uri=http%3A%2F%2Fwww.XXX.de%2Fsociallogin%3Fhauth.done%3DGoogle&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&access_type=online
The problem are the additionale characters (&,…). How can I handle this problem?