File tree Expand file tree Collapse file tree
Boundaries/Comanda.Orders/Source
Comanda.Orders.Application
Comanda.Orders.CrossCutting/Configurations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99 <ItemGroup >
1010 <PackageReference Include =" FluentValidation" Version =" 12.0.0" />
11- <PackageReference Include =" Comanda.Internal.Contracts" Version =" 1.0.1 " />
12- <PackageReference Include =" HttpsRichardy.Dispatcher" Version =" 1.0.2 " />
13- <PackageReference Include =" HttpsRichardy.Federation.Sdk.Contracts" Version =" 1.0.2 " />
11+ <PackageReference Include =" Comanda.Internal.Contracts" Version =" 1.0.8 " />
12+ <PackageReference Include =" HttpsRichardy.Dispatcher" Version =" 1.0.3 " />
13+ <PackageReference Include =" HttpsRichardy.Federation.Sdk.Contracts" Version =" 4.2.0 " />
1414 </ItemGroup >
1515
1616 <ItemGroup >
Original file line number Diff line number Diff line change @@ -5,5 +5,6 @@ public sealed record FederationSettings
55 public string ClientId { get ; init ; } = default ! ;
66 public string ClientSecret { get ; init ; } = default ! ;
77 public string Realm { get ; init ; } = default ! ;
8- public string BaseUrl { get ; init ; } = default ! ;
8+ public string Authority { get ; init ; } = default ! ;
9+ public string [ ] Audiences { get ; init ; } = default ! ;
910}
Original file line number Diff line number Diff line change 2020 <PackageReference Include =" Sentry.Serilog" Version =" 6.0.0" />
2121 <PackageReference Include =" Serilog.AspNetCore" Version =" 10.0.0" />
2222 <PackageReference Include =" Serilog.Sinks.Seq" Version =" 9.0.0" />
23- <PackageReference Include =" HttpsRichardy.Federation.Sdk" Version =" 1.0.2 " />
23+ <PackageReference Include =" HttpsRichardy.Federation.Sdk" Version =" 4.2.0 " />
2424 </ItemGroup >
2525
2626 <ItemGroup >
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public static void AddOpenApiSpecification(this IServiceCollection services)
3030 {
3131 ClientCredentials = new OpenApiOAuthFlow
3232 {
33- TokenUrl = new Uri ( settings . Federation . BaseUrl + "/api/v1/protocol/open-id/connect/token" )
33+ TokenUrl = new Uri ( settings . Federation . Authority + "/api/v1/protocol/open-id/connect/token" )
3434 }
3535 }
3636 } ;
@@ -41,12 +41,6 @@ public static void AddOpenApiSpecification(this IServiceCollection services)
4141 [ document . Components . SecuritySchemes [ SecuritySchemes . Bearer ] ] = Array . Empty < string > ( ) ,
4242 } ) ;
4343
44- document . Info . Contact = new OpenApiContact
45- {
46- Name = "Richard Garcia" ,
47- Email = "code.richardy@gmail.com" ,
48- } ;
49-
5044 return Task . CompletedTask ;
5145 } ) ;
5246 } ) ;
Original file line number Diff line number Diff line change @@ -20,10 +20,11 @@ public static void AddWebComposition(this IServiceCollection services)
2020 services . AddOpenApiSpecification ( ) ;
2121 services . AddFederation ( options =>
2222 {
23- options . BaseUrl = settings . Federation . BaseUrl ;
23+ options . Authority = settings . Federation . Authority ;
2424 options . ClientId = settings . Federation . ClientId ;
2525 options . Realm = settings . Federation . Realm ;
2626 options . ClientSecret = settings . Federation . ClientSecret ;
27+ options . Audiences = settings . Federation . Audiences ;
2728 } ) ;
2829 }
2930}
Original file line number Diff line number Diff line change 55 "DatabaseName" : " ${Settings__Database__DatabaseName}"
66 },
77 "Federation" : {
8- "BaseUrl " : " ${Settings__Federation__BaseUrl }" ,
8+ "Authority " : " ${Settings__Federation__Authority }" ,
99 "Realm" : " ${Settings__Federation__Realm}" ,
1010 "ClientId" : " ${Settings__Federation__ClientId}" ,
11- "ClientSecret" : " ${Settings__Federation__ClientSecret}"
11+ "ClientSecret" : " ${Settings__Federation__ClientSecret}" ,
12+ "Audiences" : [ " ${Settings__Federation__Audiences__0}" ]
1213 },
1314 "Observability" : {
1415 "SeqServerUrl" : " ${Settings__Observability__SeqServerUrl}" ,
You can’t perform that action at this time.
0 commit comments