Skip to content

Commit

Permalink
remove conditioal property
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed Nov 18, 2024
1 parent 531c4e8 commit eacb776
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/main/java/no/fint/oauth/OAuthTokenProps.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class OAuthTokenProps {

public static final String ENABLE_OAUTH = "fint.oauth.enabled";

@Value("${fint.oauth.username:}")
@JsonProperty
private String username;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/no/fint/oauth/TokenService.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
Expand All @@ -13,7 +12,6 @@

@Slf4j
@Service
@ConditionalOnProperty(name = "fint.oauth.enabled", havingValue = "true")
public class TokenService {

private static final String BEARER_TOKEN_TEMPLATE = "Bearer %s";
Expand Down

0 comments on commit eacb776

Please sign in to comment.