-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
La til felles sikkerhetsconfig, splittet config-filer i bekreftelse-api
- Loading branch information
1 parent
fd08a37
commit 145208f
Showing
21 changed files
with
194 additions
and
162 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
43 changes: 0 additions & 43 deletions
43
apps/bekreftelse-api/src/main/resources/local/application_config.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tokenEndpointUrl = "http://localhost:8081/azure/token" | ||
clientId = "paw-arbeidssoekerregisteret-api-bekreftelse" |
3 changes: 3 additions & 0 deletions
3
apps/bekreftelse-api/src/main/resources/local/kafka_configuration_schemareg.toml
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,3 @@ | ||
brokers = "localhost:9092" | ||
[schemaRegistry] | ||
url = "http://localhost:8082" |
2 changes: 2 additions & 0 deletions
2
apps/bekreftelse-api/src/main/resources/local/kafka_key_generator_client_config.toml
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,2 @@ | ||
url = "http://localhost:8090/kafka-keys" | ||
scope = "api://test.test.kafka-keys/.default" |
2 changes: 2 additions & 0 deletions
2
apps/bekreftelse-api/src/main/resources/local/poao_tilgang_client_config.toml
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,2 @@ | ||
url = "http://localhost:8090/poao-tilgang/" | ||
scope = "api://test.test.poao-tilgang/.default" |
24 changes: 24 additions & 0 deletions
24
apps/bekreftelse-api/src/main/resources/local/security_config.toml
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,24 @@ | ||
[[authProviders]] | ||
name = "idporten" | ||
clientId = "paw-arbeidssoekerregisteret-api-bekreftelse" | ||
discoveryUrl = "http://localhost:8081/idporten/.well-known/openid-configuration" | ||
|
||
[authProviders.claims] | ||
map = ["acr=idporten-loa-high"] | ||
|
||
[[authProviders]] | ||
name = "tokenx" | ||
clientId = "paw-arbeidssoekerregisteret-api-bekreftelse" | ||
discoveryUrl = "http://localhost:8081/tokenx/.well-known/openid-configuration" | ||
|
||
[authProviders.claims] | ||
map = ["acr=Level4", "acr=idporten-loa-high"] | ||
combineWithOr = true | ||
|
||
[[authProviders]] | ||
name = "azure" | ||
clientId = "paw-arbeidssoekerregisteret-api-bekreftelse" | ||
discoveryUrl = "http://localhost:8081/azure/.well-known/openid-configuration" | ||
|
||
[authProviders.claims] | ||
map = ["NAVident"] |
50 changes: 0 additions & 50 deletions
50
apps/bekreftelse-api/src/main/resources/nais/application_config.toml
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
2 changes: 2 additions & 0 deletions
2
apps/bekreftelse-api/src/main/resources/nais/poao_tilgang_client_config.toml
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,2 @@ | ||
url = "http://poao-tilgang.poao.svc.cluster.local" | ||
scope = "api://${NAIS_CLUSTER_NAME}.poao.poao-tilgang/.default" |
24 changes: 24 additions & 0 deletions
24
apps/bekreftelse-api/src/main/resources/nais/security_config.toml
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,24 @@ | ||
[[authProviders]] | ||
name = "idporten" | ||
discoveryUrl = "${IDPORTEN_WELL_KNOWN_URL} | ||
clientId = "${IDPORTEN_CLIENT_ID}" | ||
|
||
[authProviders.claims] | ||
map = ["acr=idporten-loa-high"] | ||
|
||
[[authProviders]] | ||
name = "tokenx" | ||
discoveryUrl = "${TOKEN_X_WELL_KNOWN_URL}" | ||
clientId = "${TOKEN_X_CLIENT_ID}" | ||
|
||
[authProviders.claims] | ||
map = ["acr=Level4", "acr=idporten-loa-high"] | ||
combineWithOr = true | ||
|
||
[[authProviders]] | ||
name = "azure" | ||
discoveryUrl = "${AZURE_APP_WELL_KNOWN_URL}" | ||
clientId = "${AZURE_APP_CLIENT_ID}" | ||
|
||
[authProviders.claims] | ||
map = ["NAVident"] |
Oops, something went wrong.