From 4fa6da78528d4d86a39917ffd2cffea015910b77 Mon Sep 17 00:00:00 2001 From: Maxime Veber Date: Thu, 16 Aug 2018 21:33:49 +0200 Subject: [PATCH] Fix wrong url --- CHANGELOG.md | 4 ++++ lib/Nekland/YoutubeApi/Http/Auth/ServiceAuth.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91d5db8..025c578 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [0.2.0] - 2018-08-16 +### Fixed +- Wrong Google auth URL + ## [0.2.0] - 2018-08-16 ### Added - New auth method because google given now different information than before diff --git a/lib/Nekland/YoutubeApi/Http/Auth/ServiceAuth.php b/lib/Nekland/YoutubeApi/Http/Auth/ServiceAuth.php index c2b3c51..fca32dd 100644 --- a/lib/Nekland/YoutubeApi/Http/Auth/ServiceAuth.php +++ b/lib/Nekland/YoutubeApi/Http/Auth/ServiceAuth.php @@ -78,7 +78,7 @@ private function getToken() $jws->sign($this->getPrivateKey()); $response = $this->client->post( - 'https://accounts.google.com/o/oauth2/token', + 'https://www.googleapis.com/oauth2/v4/token', ['Content-Type' => 'application/x-www-form-urlencoded'], [ 'grant_type' => 'urn:ietf:params:oauth:grant-type:jwt-bearer',