update app settings
This commit is contained in:
		| @@ -18,19 +18,8 @@ namespace Core.Thalos.BFF.Api.Controllers | |||||||
|     public class AuthenticationController( |     public class AuthenticationController( | ||||||
|     IThalosServiceClient thalosServiceClient, |     IThalosServiceClient thalosServiceClient, | ||||||
|     ILogger<AuthenticationController> logger, |     ILogger<AuthenticationController> logger, | ||||||
|     ITokenService tokenService, |     ITokenService tokenService) : BaseController(logger) | ||||||
|     IGoogleAuthorization googleAuthorization) : BaseController(logger) |  | ||||||
|     { |     { | ||||||
|         [HttpGet] |  | ||||||
|         public IActionResult Authorize() => Ok(googleAuthorization.GetAuthorizationUrl()); |  | ||||||
|  |  | ||||||
|         [HttpGet("callback")] |  | ||||||
|         public async Task<IActionResult> Callback(string code) |  | ||||||
|         { |  | ||||||
|             var userCredential = await googleAuthorization.ExchangeCodeForToken(code); |  | ||||||
|  |  | ||||||
|             return Ok(new { Token = userCredential!.Token.IdToken }); |  | ||||||
|         } |  | ||||||
|         /// <summary> |         /// <summary> | ||||||
|         /// Get token for user. |         /// Get token for user. | ||||||
|         /// </summary> |         /// </summary> | ||||||
|   | |||||||
| @@ -24,7 +24,7 @@ | |||||||
|       "dotnetRunMessages": true, |       "dotnetRunMessages": true, | ||||||
|       "launchBrowser": true, |       "launchBrowser": true, | ||||||
|       "launchUrl": "swagger", |       "launchUrl": "swagger", | ||||||
|       "applicationUrl": "https://localhost:7239;http://localhost:5219", |       "applicationUrl": "https://localhost:44320;http://localhost:5219", | ||||||
|       "environmentVariables": { |       "environmentVariables": { | ||||||
|         "ASPNETCORE_ENVIRONMENT": "Local" |         "ASPNETCORE_ENVIRONMENT": "Local" | ||||||
|       } |       } | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ | |||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "LocalGateways": { |   "LocalGateways": { | ||||||
|     "ThalosService": "https://localhost:7253/api" |     "ThalosService": "https://localhost:44312/api" | ||||||
|   }, |   }, | ||||||
|   "ServiceSettings": { |   "ServiceSettings": { | ||||||
|     "ApplicationName": "thalos", |     "ApplicationName": "thalos", | ||||||
| @@ -14,12 +14,12 @@ | |||||||
|   }, |   }, | ||||||
|   "Vault": { |   "Vault": { | ||||||
|     "Address": "http://100.123.31.103:8200", |     "Address": "http://100.123.31.103:8200", | ||||||
|     "Token": "hvs.e37LQvLuPhTd5ALS5QQ03Cwm", |     "Token": "hvs.kLjCgmm6ABeuwJNFYma9kDdy", | ||||||
|     "SecretMount": "secret" |     "SecretMount": "secret" | ||||||
|   }, |   }, | ||||||
|   "IdentityProviders": { |   "IdentityProviders": { | ||||||
|     "Google": true, |     "Google": true, | ||||||
|     "Azure": true |     "Azure": false | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user