mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 21:32:55 +08:00
Update client id/secret and bring API endpoints up-to-date.
This commit is contained in:
parent
a980671c54
commit
3fa80d2376
@ -19,8 +19,8 @@ namespace osu.Game.Online.API
|
|||||||
private OAuth authentication;
|
private OAuth authentication;
|
||||||
|
|
||||||
public string Endpoint = @"https://new.ppy.sh";
|
public string Endpoint = @"https://new.ppy.sh";
|
||||||
const string ClientId = @"daNBnfdv7SppRVc61z0XuOI13y6Hroiz";
|
const string ClientId = @"5";
|
||||||
const string ClientSecret = @"d6fgZuZeQ0eSXkEj5igdqQX6ztdtS6Ow";
|
const string ClientSecret = @"FGc9GAtyHzeQDshWP5Ah7dega8hJACAJpQtw6OXk";
|
||||||
|
|
||||||
ConcurrentQueue<APIRequest> queue = new ConcurrentQueue<APIRequest>();
|
ConcurrentQueue<APIRequest> queue = new ConcurrentQueue<APIRequest>();
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ namespace osu.Game.Online.API
|
|||||||
{
|
{
|
||||||
var req = new AccessTokenRequestPassword(username, password)
|
var req = new AccessTokenRequestPassword(username, password)
|
||||||
{
|
{
|
||||||
Url = $@"{endpoint}/oauth/access_token",
|
Url = $@"{endpoint}/oauth/token",
|
||||||
Method = HttpMethod.POST,
|
Method = HttpMethod.POST,
|
||||||
ClientId = clientId,
|
ClientId = clientId,
|
||||||
ClientSecret = clientSecret
|
ClientSecret = clientSecret
|
||||||
@ -55,7 +55,7 @@ namespace osu.Game.Online.API
|
|||||||
{
|
{
|
||||||
var req = new AccessTokenRequestRefresh(refresh)
|
var req = new AccessTokenRequestRefresh(refresh)
|
||||||
{
|
{
|
||||||
Url = $@"{endpoint}/oauth/access_token",
|
Url = $@"{endpoint}/oauth/token",
|
||||||
Method = HttpMethod.POST,
|
Method = HttpMethod.POST,
|
||||||
ClientId = clientId,
|
ClientId = clientId,
|
||||||
ClientSecret = clientSecret
|
ClientSecret = clientSecret
|
||||||
|
Loading…
Reference in New Issue
Block a user