-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update environment variables and config settings in TenorSearchServic…
…e #deploy-tenor-search-service
- Loading branch information
Showing
5 changed files
with
19 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 10 additions & 28 deletions
38
...rvice/src/main/java/no/nav/testnav/apps/tenorsearchservice/config/MaskinportenConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,22 @@ | ||
package no.nav.testnav.apps.tenorsearchservice.config; | ||
|
||
import lombok.Getter; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Getter | ||
@Configuration | ||
public class MaskinportenConfig { | ||
|
||
private final String clientId; | ||
private final String jwkPrivate; | ||
private final String scope; | ||
private final String wellKnownUrl; | ||
@Value("${MASKINPORTEN_CLIENT_ID}") | ||
private String clientId; | ||
|
||
public MaskinportenConfig( | ||
@Value("${MASKINPORTEN_CLIENT_ID}") String clientId, | ||
@Value("${MASKINPORTEN_CLIENT_JWK}") String jwkPrivate, | ||
@Value("${MASKINPORTEN_WELL_KNOWN_URL}") String wellKnownUrl | ||
) { | ||
this.clientId = clientId; | ||
this.scope = "skatteetaten:tjenestepensjonsavtale"; | ||
this.jwkPrivate = jwkPrivate; | ||
this.wellKnownUrl = wellKnownUrl; | ||
} | ||
@Value("${MASKINPORTEN_CLIENT_JWK}") | ||
private String jwkPrivate; | ||
|
||
public String getClientId() { | ||
return clientId; | ||
} | ||
@Value("${MASKINPORTEN_TENOR_SCOPE}") | ||
private String scope; | ||
|
||
public String getJwkPrivate() { | ||
return jwkPrivate; | ||
} | ||
|
||
public String getScope() { | ||
return scope; | ||
} | ||
|
||
public String getWellKnownUrl() { | ||
return wellKnownUrl; | ||
} | ||
@Value("${MASKINPORTEN_WELL_KNOWN_URL}") | ||
private String wellKnownUrl; | ||
} |
6 changes: 2 additions & 4 deletions
6
apps/tenor-search-service/src/main/resources/application-local.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
ACCEPTED_AUDIENCE: dev-gcp:dolly:testnav-tenor-search-service | ||
|
||
TOKENDINGS_URL: dummy | ||
TOKEN_X_ISSUER: dummy | ||
|
||
MASKINPORTEN_CLIENT_ID: dummy | ||
MASKINPORTEN_CLIENT_JWK: dummy | ||
MASKINPORTEN_SCOPES: dummy | ||
MASKINPORTEN_TENOR_SCOPE: dummy | ||
MASKINPORTEN_WELL_KNOWN_URL: dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apps/tenor-search-service/src/test/resources/application-test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
TOKENDINGS_URL: dummy | ||
TOKEN_X_ISSUER: dummy | ||
MASKINPORTEN_CLIENT_ID: dummy | ||
MASKINPORTEN_CLIENT_JWK: dummy | ||
MASKINPORTEN_SCOPES: dummy | ||
MASKINPORTEN_TENOR_SCOPE: dummy | ||
MASKINPORTEN_WELL_KNOWN_URL: dummy |