Compare commits
	
		
			6 Commits
		
	
	
		
			9872c1b88b
			...
			developmen
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 07cd891ade | |||
| 8cfbad61fb | |||
| 9b7e55c439 | |||
| 806b5242b0 | |||
|   | 24f5711e1c | ||
| e3d75fbfa8 | 
| @@ -96,13 +96,5 @@ namespace Core.Thalos.BuildingBlocks | |||||||
|         [BsonRepresentation(BsonType.String)] |         [BsonRepresentation(BsonType.String)] | ||||||
|         [JsonPropertyName("token")] |         [JsonPropertyName("token")] | ||||||
|         public string? Token { get; set; } = null; |         public string? Token { get; set; } = null; | ||||||
|  |  | ||||||
|         /// <summary> |  | ||||||
|         /// Gets or sets the tenant identifier associated with the user. |  | ||||||
|         /// </summary> |  | ||||||
|         [BsonElement("tenantId")] |  | ||||||
|         [BsonRepresentation(BsonType.ObjectId)] |  | ||||||
|         [JsonPropertyName("tenantId")] |  | ||||||
|         public string? TenantId { get; set; } |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -58,5 +58,6 @@ namespace Core.Thalos.BuildingBlocks | |||||||
|         public const string GoogleClientId = "GoogleClientId"; |         public const string GoogleClientId = "GoogleClientId"; | ||||||
|         public const string GoogleClientSecret = "GoogleClientSecret"; |         public const string GoogleClientSecret = "GoogleClientSecret"; | ||||||
|         public const string GoogleRedirectUri = "GoogleRedirectUri"; |         public const string GoogleRedirectUri = "GoogleRedirectUri"; | ||||||
|  |         public const string GoogleLocalRedirectUri = "GoogleLocalRedirectUri"; | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|  |  | ||||||
|   <ItemGroup> |   <ItemGroup> | ||||||
|     <PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" /> |     <PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" /> | ||||||
|     <PackageReference Include="Core.Blueprint.KeyVault" Version="1.0.3" /> |     <PackageReference Include="Core.Blueprint.KeyVault" Version="1.0.0" /> | ||||||
|     <PackageReference Include="Core.Blueprint.Mongo" Version="1.0.0" /> |     <PackageReference Include="Core.Blueprint.Mongo" Version="1.0.0" /> | ||||||
|     <PackageReference Include="Google.Apis.Auth" Version="1.70.0" /> |     <PackageReference Include="Google.Apis.Auth" Version="1.70.0" /> | ||||||
|     <PackageReference Include="Google.Apis.Oauth2.v2" Version="1.68.0.1869" /> |     <PackageReference Include="Google.Apis.Oauth2.v2" Version="1.68.0.1869" /> | ||||||
|   | |||||||
| @@ -10,6 +10,7 @@ using Microsoft.Extensions.Configuration; | |||||||
| using Microsoft.Extensions.DependencyInjection; | using Microsoft.Extensions.DependencyInjection; | ||||||
| using Microsoft.Extensions.Options; | using Microsoft.Extensions.Options; | ||||||
| using Microsoft.OpenApi.Any; | using Microsoft.OpenApi.Any; | ||||||
|  | using Microsoft.OpenApi.Interfaces; | ||||||
| using Microsoft.OpenApi.Models; | using Microsoft.OpenApi.Models; | ||||||
| using Swashbuckle.AspNetCore.SwaggerGen; | using Swashbuckle.AspNetCore.SwaggerGen; | ||||||
| using Swashbuckle.AspNetCore.SwaggerUI; | using Swashbuckle.AspNetCore.SwaggerUI; | ||||||
| @@ -114,6 +115,12 @@ namespace Core.Thalos.BuildingBlocks.Configuration | |||||||
|                     c.AddSecurityDefinition(googleScheme, new OpenApiSecurityScheme |                     c.AddSecurityDefinition(googleScheme, new OpenApiSecurityScheme | ||||||
|                     { |                     { | ||||||
|                         Type = SecuritySchemeType.OAuth2, |                         Type = SecuritySchemeType.OAuth2, | ||||||
|  |  | ||||||
|  |                         Extensions = new Dictionary<string, IOpenApiExtension> | ||||||
|  |                         { | ||||||
|  |                             ["x-tokenName"] = new OpenApiString("id_token") | ||||||
|  |                         }, | ||||||
|  |  | ||||||
|                         Flows = new OpenApiOAuthFlows |                         Flows = new OpenApiOAuthFlows | ||||||
|                         { |                         { | ||||||
|                             AuthorizationCode = new OpenApiOAuthFlow |                             AuthorizationCode = new OpenApiOAuthFlow | ||||||
|   | |||||||
| @@ -112,7 +112,7 @@ namespace Core.Thalos.BuildingBlocks | |||||||
|             { |             { | ||||||
|                 googleSettings.ClientId = (await keyVaultProvider.GetSecretAsync(Secrets.GoogleClientId, new CancellationToken { })).Secret.Value; ; |                 googleSettings.ClientId = (await keyVaultProvider.GetSecretAsync(Secrets.GoogleClientId, new CancellationToken { })).Secret.Value; ; | ||||||
|                 googleSettings.ClientSecret = (await keyVaultProvider.GetSecretAsync(Secrets.GoogleClientSecret, 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 |             else | ||||||
|             { |             { | ||||||
|   | |||||||
							
								
								
									
										9
									
								
								nuget.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								nuget.config
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||||
|  | <configuration> | ||||||
|  |   <packageSources> | ||||||
|  |     <!-- Tu BaGet primero --> | ||||||
|  |     <add key="BaGet" value="https://nuget.dream-views.com/v3/index.json" protocolVersion="3" /> | ||||||
|  |     <!-- NuGet oficial como fallback (si quieres) --> | ||||||
|  |     <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||||||
|  |   </packageSources> | ||||||
|  | </configuration> | ||||||
		Reference in New Issue
	
	Block a user