diff --git a/Core.Thalos.BFF.Api/Controllers/AuthenticationController.cs b/Core.Thalos.BFF.Api/Controllers/AuthenticationController.cs index 7dee38f..99db7f1 100644 --- a/Core.Thalos.BFF.Api/Controllers/AuthenticationController.cs +++ b/Core.Thalos.BFF.Api/Controllers/AuthenticationController.cs @@ -18,19 +18,8 @@ namespace Core.Thalos.BFF.Api.Controllers public class AuthenticationController( IThalosServiceClient thalosServiceClient, ILogger logger, - ITokenService tokenService, - IGoogleAuthorization googleAuthorization) : BaseController(logger) + ITokenService tokenService) : BaseController(logger) { - [HttpGet] - public IActionResult Authorize() => Ok(googleAuthorization.GetAuthorizationUrl()); - - [HttpGet("callback")] - public async Task Callback(string code) - { - var userCredential = await googleAuthorization.ExchangeCodeForToken(code); - - return Ok(new { Token = userCredential!.Token.IdToken }); - } /// /// Get token for user. /// diff --git a/Core.Thalos.BFF.Api/Properties/launchSettings.json b/Core.Thalos.BFF.Api/Properties/launchSettings.json index bfcac2b..481f58a 100644 --- a/Core.Thalos.BFF.Api/Properties/launchSettings.json +++ b/Core.Thalos.BFF.Api/Properties/launchSettings.json @@ -24,7 +24,7 @@ "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "https://localhost:7239;http://localhost:5219", + "applicationUrl": "https://localhost:44320;http://localhost:5219", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Local" } diff --git a/Core.Thalos.BFF.Api/appsettings.Local.json b/Core.Thalos.BFF.Api/appsettings.Local.json index 4861752..47a71fc 100644 --- a/Core.Thalos.BFF.Api/appsettings.Local.json +++ b/Core.Thalos.BFF.Api/appsettings.Local.json @@ -6,7 +6,7 @@ } }, "LocalGateways": { - "ThalosService": "https://localhost:7253/api" + "ThalosService": "https://localhost:44312/api" }, "ServiceSettings": { "ApplicationName": "thalos", @@ -14,12 +14,12 @@ }, "Vault": { "Address": "http://100.123.31.103:8200", - "Token": "hvs.e37LQvLuPhTd5ALS5QQ03Cwm", + "Token": "hvs.kLjCgmm6ABeuwJNFYma9kDdy", "SecretMount": "secret" }, "IdentityProviders": { "Google": true, - "Azure": true + "Azure": false } }