Skip to content

Commit

Permalink
feat: add cache introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
rikdepeuter authored and ArneD committed Jan 2, 2025
1 parent e6e9009 commit a1e92c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ nuget Be.Vlaanderen.Basisregisters.Snapshotverifier 9.1.1

nuget Be.Vlaanderen.Basisregisters.Api 23.1.0

nuget Be.Vlaanderen.Basisregisters.Auth.AcmIdm 3.0.0
nuget Be.Vlaanderen.Basisregisters.Auth.AcmIdm 3.3.0

nuget Be.Vlaanderen.Basisregisters.Aws.DistributedMutex 4.0.1
nuget Be.Vlaanderen.Basisregisters.Aws.Lambda 4.0.0
Expand Down
6 changes: 3 additions & 3 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ NUGET
NSwag.CodeGeneration.CSharp (>= 14.0.3)
NSwag.CodeGeneration.TypeScript (>= 14.0.3)
Swashbuckle.AspNetCore (6.2.3)
Be.Vlaanderen.Basisregisters.Auth.AcmIdm (3.0)
Be.Vlaanderen.Basisregisters.NisCodeService.Abstractions (>= 2.0)
Be.Vlaanderen.Basisregisters.Auth.AcmIdm (3.3)
Be.Vlaanderen.Basisregisters.NisCodeService.Abstractions (>= 5.0)
IdentityModel.AspNetCore.OAuth2Introspection (>= 6.2)
Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.3)
Microsoft.Extensions.DependencyInjection (>= 8.0)
Expand Down Expand Up @@ -330,7 +330,7 @@ NUGET
Confluent.Kafka (>= 2.3)
Newtonsoft.Json (>= 13.0.3)
Be.Vlaanderen.Basisregisters.Middleware.AddProblemJsonHeader (3.0)
Be.Vlaanderen.Basisregisters.NisCodeService.Abstractions (2.0)
Be.Vlaanderen.Basisregisters.NisCodeService.Abstractions (5.0)
Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
Be.Vlaanderen.Basisregisters.ProblemDetails (9.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
? baseUrl.Substring(0, baseUrl.Length - 1)
: baseUrl;

services.AddAcmIdmAuthentication(oAuth2IntrospectionOptions!);
services
.AddDistributedMemoryCache()
.AddAcmIdmAuthentication(oAuth2IntrospectionOptions!);

services
.ConfigureDefaultForApi<Startup>(new StartupConfigureOptions
{
Expand Down
3 changes: 2 additions & 1 deletion src/BuildingRegistry.Api.BackOffice/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"ClientId": "acmidmconsumer.webapi",
"ClientSecret": "a_very=Secr3t*Key",
"Authority": "http://localhost:5051",
"IntrospectionEndpoint": "http://localhost:5051/connect/introspect"
"IntrospectionEndpoint": "http://localhost:5051/connect/introspect",
"EnableCaching": true
},

"NisCodeServiceUrl": "https://niscode.ops-api.basisregisters.dev-vlaanderen.be",
Expand Down

0 comments on commit a1e92c2

Please sign in to comment.