-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into iam/s2s-token-request
- Loading branch information
Showing
25 changed files
with
543 additions
and
141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package oauth | ||
|
||
// algValuesSupported contains a list of supported cipher suites for jwt_vc_json & jwt_vp_json presentation formats | ||
// Recommended list of options https://www.iana.org/assignments/jose/jose.xhtml#web-signature-encryption-algorithms | ||
// TODO: validate list, should reflect current recommendations from https://www.ncsc.nl | ||
var algValuesSupported = []string{"PS256", "PS384", "PS512", "ES256", "ES384", "ES512"} | ||
|
||
// proofTypeValuesSupported contains a list of supported cipher suites for ldp_vc & ldp_vp presentation formats | ||
// Recommended list of options https://w3c-ccg.github.io/ld-cryptosuite-registry/ | ||
var proofTypeValuesSupported = []string{"JsonWebSignature2020"} | ||
|
||
// DefaultOpenIDSupportedFormats returns the OpenID formats supported by the Nuts node and is used in the | ||
// - Authorization Server's metadata field `vp_formats_supported` | ||
// - Client's metadata field `vp_formats` | ||
// | ||
// TODO: spec is very unclear about this part. | ||
// See https://github.com/nuts-foundation/nuts-node/issues/2447 | ||
func DefaultOpenIDSupportedFormats() map[string]map[string][]string { | ||
return map[string]map[string][]string{ | ||
"jwt_vp_json": {"alg_values_supported": algValuesSupported}, | ||
"jwt_vc_json": {"alg_values_supported": algValuesSupported}, | ||
"ldp_vc": {"proof_type_values_supported": proofTypeValuesSupported}, | ||
"ldp_vp": {"proof_type_values_supported": proofTypeValuesSupported}, | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: "3.7" | ||
services: | ||
node: | ||
image: "${IMAGE_NODE_A:-nutsfoundation/nuts-node:master}" | ||
environment: | ||
NUTS_CONFIGFILE: /opt/nuts/nuts.yaml | ||
volumes: | ||
- "./nuts.yaml:/opt/nuts/nuts.yaml:ro" | ||
- "../../tls-certs/nodeA-certificate.pem:/opt/nuts/certificate-and-key.pem:ro" | ||
- "../../tls-certs/truststore.pem:/opt/nuts/truststore.pem:ro" | ||
ports: | ||
- "1323:1323" | ||
healthcheck: | ||
interval: 1s # Make test run quicker by checking health status more often | ||
depends_on: | ||
db: | ||
condition: service_healthy | ||
db: | ||
image: postgres:16-alpine | ||
restart: always | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
healthcheck: | ||
test: [ "CMD-SHELL", "pg_isready -U postgres" ] # this makes sure the container only reports healthy it can be connected to | ||
interval: 1s | ||
timeout: 5s | ||
retries: 20 |
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,16 @@ | ||
url: https://node | ||
verbosity: debug | ||
auth: | ||
contractvalidators: | ||
- dummy | ||
irma: | ||
autoupdateschemas: false | ||
tls: | ||
truststorefile: /opt/nuts/truststore.pem | ||
certfile: /opt/nuts/certificate-and-key.pem | ||
certkeyfile: /opt/nuts/certificate-and-key.pem | ||
crypto: | ||
storage: fs | ||
storage: | ||
sql: | ||
connection: postgres://postgres:postgres@db:5432/postgres?sslmode=disable |
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
source ../../util.sh | ||
|
||
echo "------------------------------------" | ||
echo "Cleaning up running Docker containers and volumes, and key material..." | ||
echo "------------------------------------" | ||
docker compose stop | ||
docker compose rm -f -v | ||
|
||
echo "------------------------------------" | ||
echo "Starting Docker containers..." | ||
echo "------------------------------------" | ||
docker compose up --wait | ||
if [ $? -ne 0 ]; then | ||
echo "ERROR: node failed to start" | ||
exitWithDockerLogs 1 | ||
fi | ||
|
||
echo "------------------------------------" | ||
echo "Stopping Docker containers..." | ||
echo "------------------------------------" | ||
docker compose stop |
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
Oops, something went wrong.