Subversion Repositories oidplus

Rev

Rev 432 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 432 Rev 496
Line 42... Line 42...
42
                        $target =
42
                        $target =
43
                                "https://accounts.google.com/o/oauth2/v2/auth?".
43
                                "https://accounts.google.com/o/oauth2/v2/auth?".
44
                                "response_type=code&".
44
                                "response_type=code&".
45
                                "client_id=".urlencode(OIDplus::baseConfig()->getValue('GOOGLE_OAUTH2_CLIENT_ID'))."&".
45
                                "client_id=".urlencode(OIDplus::baseConfig()->getValue('GOOGLE_OAUTH2_CLIENT_ID'))."&".
46
                                "scope=".implode('%20', array(/*'openid',*/ 'email', 'profile'))."&".
46
                                "scope=".implode('%20', array(/*'openid',*/ 'email', 'profile'))."&".
47
                                "redirect_uri=".urlencode(OIDplus::getSystemUrl(false).OIDplus::webpath(__DIR__).'oauth.php')."&".
47
                                "redirect_uri=".urlencode(OIDplus::webpath(__DIR__,false).'oauth.php')."&".
48
                                "state=".urlencode($_COOKIE['csrf_token']);
48
                                "state=".urlencode($_COOKIE['csrf_token']);
49
                        $out['text'] = '<p>'._L('Please wait...').'</p><script>window.location.href = '.js_escape($target).';</script>';
49
                        $out['text'] = '<p>'._L('Please wait...').'</p><script>window.location.href = '.js_escape($target).';</script>';
50
                }
50
                }
51
        }
51
        }
52
 
52