में http% 3A% 2F% 2F बनता है निम्न रीडायरेक्ट यूआरएल http: // के बजाय http% 3A% 2F% 2F के साथ बन जाता है। इससे कैसे बचा जा सकता है?http: // कोडइग्निटर
अग्रिम धन्यवाद।
$params = array(
'client_id' => $client_id,
'redirect_uri' => site_url('welcome/google_connect_redirect/'),
'state' => $_SESSION['state'],
'approval_prompt' => 'force',
'scope' => 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email',
'response_type' => 'code'
);
$url = "https://accounts.google.com/o/oauth2/auth?".http_build_query($params);
// send to google
redirect($url);
यूआरएल इस तरह बन जाता है।
https://accounts.google.com/o/oauth2/auth?client_id=871111192098.apps.
googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8888%2Fmyappname
%2Findex.php%2Fwelcome%2Fgoogle_connect_redirect&state=f0babsomeletterscb5b48753358c
3b9&approval_prompt=force&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2F
userinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&
response_type=code
मुझे नहीं लगता कि यूआरएल के पुनर्निर्देशन को प्रभावित करेगा। – hjpotter92