From 3fa80d2376de74aab3580f5157b98829c43b8160 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 30 Nov 2016 17:47:40 +0900 Subject: [PATCH] Update client id/secret and bring API endpoints up-to-date. --- osu.Game/Online/API/APIAccess.cs | 4 ++-- osu.Game/Online/API/OAuth.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game/Online/API/APIAccess.cs b/osu.Game/Online/API/APIAccess.cs index 0f16d103e2..a6717b99db 100644 --- a/osu.Game/Online/API/APIAccess.cs +++ b/osu.Game/Online/API/APIAccess.cs @@ -19,8 +19,8 @@ namespace osu.Game.Online.API private OAuth authentication; public string Endpoint = @"https://new.ppy.sh"; - const string ClientId = @"daNBnfdv7SppRVc61z0XuOI13y6Hroiz"; - const string ClientSecret = @"d6fgZuZeQ0eSXkEj5igdqQX6ztdtS6Ow"; + const string ClientId = @"5"; + const string ClientSecret = @"FGc9GAtyHzeQDshWP5Ah7dega8hJACAJpQtw6OXk"; ConcurrentQueue queue = new ConcurrentQueue(); diff --git a/osu.Game/Online/API/OAuth.cs b/osu.Game/Online/API/OAuth.cs index 3358fac0e8..0aa1ed84e1 100644 --- a/osu.Game/Online/API/OAuth.cs +++ b/osu.Game/Online/API/OAuth.cs @@ -30,7 +30,7 @@ namespace osu.Game.Online.API { var req = new AccessTokenRequestPassword(username, password) { - Url = $@"{endpoint}/oauth/access_token", + Url = $@"{endpoint}/oauth/token", Method = HttpMethod.POST, ClientId = clientId, ClientSecret = clientSecret @@ -55,7 +55,7 @@ namespace osu.Game.Online.API { var req = new AccessTokenRequestRefresh(refresh) { - Url = $@"{endpoint}/oauth/access_token", + Url = $@"{endpoint}/oauth/token", Method = HttpMethod.POST, ClientId = clientId, ClientSecret = clientSecret