From a4175a43b14611d9cf4915860c9680e9c459818b Mon Sep 17 00:00:00 2001 From: Alexander Forbes-Reed Date: Tue, 28 Apr 2020 10:12:14 +0100 Subject: [PATCH] final tweaks --- dotnet/Services/Token/App/GetXblToken.cs | 2 -- dotnet/Services/Token/README.md | 8 ++++---- dotnet/Services/Token/Startup.cs | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/dotnet/Services/Token/App/GetXblToken.cs b/dotnet/Services/Token/App/GetXblToken.cs index 0cedec1f..72b9427b 100644 --- a/dotnet/Services/Token/App/GetXblToken.cs +++ b/dotnet/Services/Token/App/GetXblToken.cs @@ -21,8 +21,6 @@ public async Task GetXblToken(HttpContext ctx, bool ignoreC var useCache = !ignoreCache; // Easier to read non-negated conditions var xblProvider = _config.AuthProviders.XboxLive; - Console.WriteLine(xblProvider.Password); - using (var client = _redisClientsManager.GetClient()) { if (useCache) diff --git a/dotnet/Services/Token/README.md b/dotnet/Services/Token/README.md index 9c0c9edc..cd8eafd1 100644 --- a/dotnet/Services/Token/README.md +++ b/dotnet/Services/Token/README.md @@ -4,7 +4,7 @@ BaseURL: https://service-token.branch.golf/1 ## Versions -- `preview`: This service is still in preview. +- `2020-04-27`: Service created ## Api @@ -14,7 +14,7 @@ BaseURL: https://service-token.branch.golf/1 ### Methods -#### `get_xboxlive_token` +#### `get_xbl_token` ##### Request @@ -30,9 +30,9 @@ BaseURL: https://service-token.branch.golf/1 { "cache_overview": { "cached_at": "2020-04-26T23:00:02.168Z", - "cache_expiry": "2020-04-26T23:15:13.614Z" + "expires_at": "2020-04-26T23:15:13.614Z" }, - "token": "" + "token": "blah blah" } ``` diff --git a/dotnet/Services/Token/Startup.cs b/dotnet/Services/Token/Startup.cs index d96472d4..18625b29 100644 --- a/dotnet/Services/Token/Startup.cs +++ b/dotnet/Services/Token/Startup.cs @@ -46,7 +46,7 @@ public void Configure(IApplicationBuilder app) app.UseCrpc("/1", (c, s) => { c.Authentication = AuthenticationType.AllowInternalAuthentication; - c.Register("get_xbl_token", "preview", s.GetXblToken, s.GetXblTokenSchema); + c.Register("get_xbl_token", "2020-04-27", s.GetXblToken, s.GetXblTokenSchema); }); }