Skip to content

Commit

Permalink
Refactor property references and update application configs
Browse files Browse the repository at this point in the history
#deploy-bruker-service

Revised class imports in `GetAuthenticatedResourceServerType` for better clarity and organization. Updated `application.yml` and associated config files to rename and refactor service property names and access rules, ensuring alignment with naming conventions and system requirements. These changes enhance maintainability and support configuration consistency.
  • Loading branch information
krharum committed Dec 20, 2024
1 parent 8f9f4c2 commit 38655ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions apps/bruker-service/config.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ spec:
rules:
- application: dolly-frontend-dev
- application: dolly-frontend-dev-unstable
- application: dolly-idporten
- application: team-dolly-lokal-app
- application: testnav-oversikt-frontend
outbound:
rules:
- application: testnav-person-organisasjon-tilgang-service-dev
- application: testnav-altinn3-tilgang-service
liveness:
path: /internal/isAlive
initialDelay: 4
Expand Down
5 changes: 1 addition & 4 deletions apps/bruker-service/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ spec:
inbound:
rules:
- application: dolly-frontend
cluster: dev-gcp
- application: dolly-idporten
cluster: dev-gcp
- application: testnav-oversikt-frontend
cluster: dev-gcp
outbound:
rules:
- application: testnav-person-organisasjon-tilgang-service
- application: testnav-altinn3-tilgang-proxy
liveness:
path: /internal/isAlive
initialDelay: 4
Expand Down
2 changes: 1 addition & 1 deletion apps/bruker-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ consumers:
url: http://testnav-altinn3-proxy.dolly.svc.cluster.local
cluster: dev-gcp
namespace: dolly
name: testnav-altinn3-proxy
name: testnav-altinn3-tilgang-proxy

management:
endpoints:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package no.nav.testnav.libs.reactivesecurity.action;

import lombok.RequiredArgsConstructor;
import no.nav.testnav.libs.reactivesecurity.properties.ResourceServerProperties;
import no.nav.testnav.libs.securitycore.domain.ResourceServerType;
import org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken;
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken;
Expand All @@ -11,8 +12,6 @@
import java.util.Optional;
import java.util.concurrent.Callable;

import no.nav.testnav.libs.reactivesecurity.properties.ResourceServerProperties;

@Component
@RequiredArgsConstructor
public class GetAuthenticatedResourceServerType extends JwtResolver implements Callable<Mono<ResourceServerType>> {
Expand Down

0 comments on commit 38655ec

Please sign in to comment.