Compare commits
2 Commits
e3d75fbfa8
...
806b5242b0
| Author | SHA1 | Date | |
|---|---|---|---|
| 806b5242b0 | |||
|
|
24f5711e1c |
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user