Compare commits
	
		
			4 Commits
		
	
	
		
			feature/ad
			...
			8cfbad61fb
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 8cfbad61fb | |||
| 9b7e55c439 | |||
| 806b5242b0 | |||
|   | 24f5711e1c | 
| @@ -58,5 +58,6 @@ namespace Core.Thalos.BuildingBlocks | ||||
|         public const string GoogleClientId = "GoogleClientId"; | ||||
|         public const string GoogleClientSecret = "GoogleClientSecret"; | ||||
|         public const string GoogleRedirectUri = "GoogleRedirectUri"; | ||||
|         public const string GoogleLocalRedirectUri = "GoogleLocalRedirectUri"; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -10,6 +10,7 @@ using Microsoft.Extensions.Configuration; | ||||
| using Microsoft.Extensions.DependencyInjection; | ||||
| using Microsoft.Extensions.Options; | ||||
| using Microsoft.OpenApi.Any; | ||||
| using Microsoft.OpenApi.Interfaces; | ||||
| using Microsoft.OpenApi.Models; | ||||
| using Swashbuckle.AspNetCore.SwaggerGen; | ||||
| using Swashbuckle.AspNetCore.SwaggerUI; | ||||
| @@ -114,6 +115,12 @@ namespace Core.Thalos.BuildingBlocks.Configuration | ||||
|                     c.AddSecurityDefinition(googleScheme, new OpenApiSecurityScheme | ||||
|                     { | ||||
|                         Type = SecuritySchemeType.OAuth2, | ||||
|  | ||||
|                         Extensions = new Dictionary<string, IOpenApiExtension> | ||||
|                         { | ||||
|                             ["x-tokenName"] = new OpenApiString("id_token") | ||||
|                         }, | ||||
|  | ||||
|                         Flows = new OpenApiOAuthFlows | ||||
|                         { | ||||
|                             AuthorizationCode = new OpenApiOAuthFlow | ||||
|   | ||||
| @@ -112,7 +112,7 @@ namespace Core.Thalos.BuildingBlocks | ||||
|             { | ||||
|                 googleSettings.ClientId = (await keyVaultProvider.GetSecretAsync(Secrets.GoogleClientId, new CancellationToken { })).Secret.Value; ; | ||||
|                 googleSettings.ClientSecret = (await keyVaultProvider.GetSecretAsync(Secrets.GoogleClientSecret, new CancellationToken { })).Secret.Value; | ||||
|                 googleSettings.RedirectUri = (await keyVaultProvider.GetSecretAsync(Secrets.GoogleRedirectUri, new CancellationToken { })).Secret.Value; | ||||
|                 googleSettings.RedirectUri = builder.Configuration.GetSection(Secrets.GoogleLocalRedirectUri).Value; | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user