Skip to content

Commit

Permalink
Remove unused Altinn endpoint and clean query parameters #deploy-alti…
Browse files Browse the repository at this point in the history
…nn3-tilgang-service-prod #deploy-altinn3-tilgang-service

Removed the `/altinn/*` endpoint from security configuration as it is no longer needed. Additionally, simplified the Altinn command by removing the unnecessary `includeAltinn2` query parameter.
  • Loading branch information
krharum committed Dec 19, 2024
1 parent 6e4116d commit c50152e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public Mono<AuthorizedPartyDTO[]> call() {
return webClient
.post()
.uri(builder -> builder.path(ALTINN_URL)
.queryParam("includeAltinn2", true).build())
.build())
.header(HttpHeaders.AUTHORIZATION, "Bearer " + token)
.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
.bodyValue(request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public SecurityWebFilterChain configure(ServerHttpSecurity http, ServerOAuth2Aut
.authorizeExchange(authorizeExchangeSpec -> authorizeExchangeSpec.pathMatchers(
"/internal/isReady",
"/internal/isAlive",
"/altinn/*",
"/assets/*",
"/internal/metrics",
"/oauth2/callback",
Expand Down

0 comments on commit c50152e

Please sign in to comment.