-
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.
* Frontend endret consumer som var feil * PersonOrgTilgangService gitt outbound maskinporten-tilgang
- Loading branch information
Showing
15 changed files
with
87 additions
and
38 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
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
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
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
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
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
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
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
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
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
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
36 changes: 36 additions & 0 deletions
36
...rvice/src/main/java/no/nav/testnav/apps/persontilgangservice/config/LocalVaultConfig.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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package no.nav.testnav.apps.persontilgangservice.config; | ||
|
||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.vault.annotation.VaultPropertySource; | ||
import org.springframework.vault.authentication.ClientAuthentication; | ||
import org.springframework.vault.authentication.TokenAuthentication; | ||
import org.springframework.vault.client.VaultEndpoint; | ||
import org.springframework.vault.config.AbstractVaultConfiguration; | ||
|
||
import static io.micrometer.common.util.StringUtils.isBlank; | ||
|
||
@Configuration | ||
@Profile("local") | ||
@VaultPropertySource(value = "secret/dolly/lokal", ignoreSecretNotFound = false) | ||
public class LocalVaultConfig extends AbstractVaultConfiguration { | ||
|
||
private static final String VAULT_TOKEN = "spring.cloud.vault.token"; | ||
|
||
@Override | ||
public VaultEndpoint vaultEndpoint() { | ||
return VaultEndpoint.create("vault.adeo.no", 443); | ||
} | ||
|
||
@Override | ||
public ClientAuthentication clientAuthentication() { | ||
if (System.getenv().containsKey("VAULT_TOKEN")) { | ||
System.setProperty(VAULT_TOKEN, System.getenv("VAULT_TOKEN")); | ||
} | ||
var token = System.getProperty(VAULT_TOKEN); | ||
if (isBlank(token)) { | ||
throw new IllegalArgumentException("Påkrevet property 'spring.cloud.vault.token' er ikke satt."); | ||
} | ||
return new TokenAuthentication(System.getProperty(VAULT_TOKEN)); | ||
} | ||
} |
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
10 changes: 9 additions & 1 deletion
10
apps/person-organisasjon-tilgang-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,2 +1,10 @@ | ||
ACCEPTED_AUDIENCE: dev-gcp:dolly:testnav-person-tilgang-service-dev | ||
ALTINN_URL: https://tt02.altinn.no | ||
ALTINN_URL: https://tt02.altinn.no | ||
|
||
TOKENDINGS_URL: dummy | ||
ALTINN_API_KEY: dummy | ||
|
||
MASKINPORTEN_CLIENT_ID: dummy | ||
MASKINPORTEN_CLIENT_JWK: dummy | ||
MASKINPORTEN_SCOPES: 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