Skip to content

Commit

Permalink
* Pdl fullmakt proxy mindre endring
Browse files Browse the repository at this point in the history
#deploy-proxy-fullmakt
  • Loading branch information
stigus committed Sep 30, 2024
1 parent b185efe commit cf2e939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import lombok.extern.slf4j.Slf4j;
import no.nav.testnav.libs.securitycore.command.ExchangeCommand;
import no.nav.testnav.libs.securitycore.domain.AccessToken;
import no.nav.testnav.libs.securitycore.domain.Token;
import no.nav.testnav.libs.securitycore.domain.tokenx.TokenXProperties;
import no.nav.testnav.libs.securitycore.domain.tokenx.WellKnown;
import org.springframework.web.reactive.function.BodyInserters;
Expand All @@ -31,7 +30,6 @@ public class OnBehalfOfExchangeCommand implements ExchangeCommand {

@Override
public Mono<AccessToken> call() {
log.info("Access token opprettet for OAuth 2.0 On-Behalf-Of Flow. Scope: {}.", scope);
return webClient
.get()
.uri(tokenX.getWellKnownUrl())
Expand Down Expand Up @@ -60,6 +58,7 @@ public Mono<AccessToken> call() {
throwable -> !(throwable instanceof WebClientResponseException),
throwable -> log.error("Feil ved henting av access token.", throwable)
)
.doOnSuccess(accessToken -> log.info("Access token opprettet for OAuth 2.0 On-Behalf-Of Flow. Scope: {}.", scope))
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ public Mono<String> call() {
.bodyToMono(String.class)
.doOnError(throwable -> log.error("Feil ved henting av fakedings token i fullmakt-proxy", throwable));
}
}
}

0 comments on commit cf2e939

Please sign in to comment.