bashofmann

added response_type to authorize call

@@ -107,7 +107,8 @@ class OAuth2_Service @@ -107,7 +107,8 @@ class OAuth2_Service
107 $parameters = array( 107 $parameters = array(
108 'type' => 'web_server', 108 'type' => 'web_server',
109 'client_id' => $this->_client->getClientKey(), 109 'client_id' => $this->_client->getClientKey(),
110 - 'redirect_uri' => $this->_client->getCallbackUrl() 110 + 'redirect_uri' => $this->_client->getCallbackUrl(),
  111 + 'response_type' => 'code',
111 ); 112 );
112 if ($this->_scope) { 113 if ($this->_scope) {
113 $parameters['scope'] = $this->_scope; 114 $parameters['scope'] = $this->_scope;