diff -u b/includes/OpenIDConnectClientBase.class.php b/includes/OpenIDConnectClientBase.class.php --- b/includes/OpenIDConnectClientBase.class.php +++ b/includes/OpenIDConnectClientBase.class.php @@ -137,7 +137,6 @@ ); $endpoints = $this->getEndpoints(); $response = drupal_http_request($endpoints['token'], $request_options); - if (!isset($response->error) && $response->code == 200) { $response_data = drupal_json_decode($response->data); $tokens = array( @@ -151,6 +150,7 @@ ); $endpoints = $this->getEndpoints(); $response = drupal_http_request($endpoints['token'], $request_options); + if (!isset($response->error) && $response->code == 200) { $response_data = drupal_json_decode($response->data); $tokens = array( @@ -209,10 +209,2 @@ } - - /** - * {@inheritdoc} - */ - public function endSession($id_token, $post_logout_redirect_url = '') { - // No need to do anything, but make the function have a body anyway - // so that it's callable by overriding methods. - } } @@ -231,2 +223,10 @@ + /** + * {@inheritdoc} + */ + public function endSession($id_token, $post_logout_redirect_url = '') { + // No need to do anything, but make the function have a body anyway + // so that it's callable by overriding methods. + } + }