Skip to content

Commit

Permalink
UPDATE: to use constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Nov 29, 2024
1 parent d16ac82 commit 9e65a95
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import lombok.Builder;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import no.nav.data.common.exceptions.TokenExpiredException;
import no.nav.data.common.security.dto.AccessTokenResponse;
Expand All @@ -27,11 +26,14 @@

@Slf4j
@Component
@RequiredArgsConstructor
public class AzureTokenConsumer {

private final RestTemplate azureRestClient;

public AzureTokenConsumer(RestTemplate azureRestClient) {
this.azureRestClient = azureRestClient;
}

@Value("${azure.activedirectory.client-id}")
private String clientId;

Expand Down

0 comments on commit 9e65a95

Please sign in to comment.