FromDK / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Parameter "state" can not be specified on authorization #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Parameter "state" can not be specified on authorization:
/* File apiOAuth2.php */
  public function createAuthUrl($service) {
    $params = array(
        'response_type=code',
        'redirect_uri=' . urlencode($this->RedirectUri),
        'client_id=' . urlencode($this->ClientId),
        'scope=' . urlencode($service['scope'])
    );
    $params = implode('&', $params);
    return self::OAUTH2_AUTH_URL . "?$params";
  }

This parameter is missed in this function.

Original issue reported on code.google.com by deutschm...@gmail.com on 10 Sep 2011 at 7:58

GoogleCodeExporter commented 8 years ago

Original comment by chiragsh...@gmail.com on 11 Sep 2011 at 11:53

GoogleCodeExporter commented 8 years ago

Original comment by chiragsh...@gmail.com on 29 Sep 2011 at 4:38

GoogleCodeExporter commented 8 years ago
Fixed as of revision 232.

Original comment by chirags@google.com on 4 Oct 2011 at 12:16