Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
67cf070
feat(verifier): add OIDC session/client models and rate limit middleware
leifj Dec 9, 2025
95d43ac
feat(verifier): add OAuth/OIDC errors and validation utilities
leifj Dec 9, 2025
513cbf6
feat(verifier): add OIDC handlers and update Client struct
leifj Dec 9, 2025
08b8257
feat(verifier): add OpenID4VP and client registration handlers
leifj Dec 9, 2025
484a167
feat(verifier): complete migration of verifier-proxy functionality
leifj Dec 9, 2025
e746699
ADR-06: Remove redundant verifier-proxy code and consolidate document…
leifj Dec 9, 2025
0ca6dcb
ADR-06 Phase 4: Add unit tests for merged verifier
leifj Dec 9, 2025
d88ae82
ADR-06: Add interface-based mocking for database layer
leifj Dec 9, 2025
564fd52
ADR-06: Improve test coverage with low-hanging fruit tests
leifj Dec 9, 2025
8e231df
ADR-06: Add handler tests and improve coverage
leifj Dec 11, 2025
ad1a2aa
ADR-06: Add comprehensive Token endpoint tests
leifj Dec 11, 2025
f537ba0
ADR-06: Add comprehensive Authorize endpoint tests
leifj Dec 11, 2025
81d251c
test: add Client Registration handler tests (RFC 7591, 7592)
leifj Dec 11, 2025
b7eb10c
test: add OpenID4VP handler tests
leifj Dec 11, 2025
1f00521
test: add Session Preference handler tests
leifj Dec 11, 2025
f565050
test: add GetKID and UIMetadata tests
leifj Dec 11, 2025
9ccc99a
test: add buildLegacyDCQLQuery and GetJWKS key type tests
leifj Dec 11, 2025
ca663eb
test: add VerificationCallback tests and credential cache to mock
leifj Dec 11, 2025
1692018
test: improve GetUserInfo coverage with edge cases
leifj Dec 11, 2025
58f0052
test: add createDCQLQuery and checkSSRF DNS lookup tests
leifj Dec 11, 2025
601dfc9
test: improve coverage with extractClaimsFromVPToken, validateRegistr…
leifj Dec 11, 2025
30c079b
test: improve UpdateClient coverage with optional fields tests
leifj Dec 11, 2025
cfc64e3
test: improve buildLegacyDCQLQuery coverage with VCTM test
leifj Dec 11, 2025
1055995
docs: complete verifier merge plan documentation
leifj Dec 11, 2025
23ecc72
ignore coverage output
leifj Dec 12, 2025
926bcb0
fix: nil pointer dereference in extractAndMapClaims and add tests
leifj Dec 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
cover.out
coverage.html
coverage.out
bin/
pki/*
!pki/create_pki.sh
Expand Down
21 changes: 4 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ NAME := vc
LDFLAGS := -ldflags "-w -s --extldflags '-static'"
LDFLAGS_DYNAMIC := -ldflags "-w -s"
CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
SERVICES := verifier registry persistent mockas apigw issuer ui wallet verifier-proxy
SERVICES := verifier registry persistent mockas apigw issuer ui wallet
PORT := 8888
W3C_TEST_SUITE_DIR := /tmp/w3c-test-suite

Expand All @@ -13,7 +13,7 @@ pki:
cd pki/; ./create_pki.sh
cd developer_tools/; ./gen_ec_sign_key.sh; ./gen_rsa_sign_key.sh

test: test-apigw test-issuer test-mockas test-persistent test-registry test-ui test-verifier test-verifier-proxy
test: test-apigw test-issuer test-mockas test-persistent test-registry test-ui test-verifier

test-apigw:
$(info Testing apigw)
Expand Down Expand Up @@ -43,10 +43,6 @@ test-verifier:
$(info Testing verifier)
go test -v ./cmd/verifier/... ./internal/verifier/...

test-verifier-proxy:
$(info Testing verifier-proxy)
go test -v ./cmd/verifier-proxy/... ./internal/verifier_proxy/...

# W3C VC 2.0 Test Suite targets
create-w3c-test-suite:
$(info Creating W3C test suite in $(W3C_TEST_SUITE_DIR))
Expand Down Expand Up @@ -112,10 +108,9 @@ DOCKER_TAG_MOCKAS := docker.sunet.se/dc4eu/mockas:$(VERSION)
DOCKER_TAG_ISSUER := docker.sunet.se/dc4eu/issuer:$(VERSION)
DOCKER_TAG_UI := docker.sunet.se/dc4eu/ui:$(VERSION)
DOCKER_TAG_WALLET := docker.sunet.se/dc4eu/wallet:$(VERSION)
DOCKER_TAG_VERIFIER_PROXY := docker.sunet.se/dc4eu/verifier-proxy:$(VERSION)


build: proto build-verifier build-registry build-persistent build-mockas build-apigw build-ui build-verifier-proxy build-vc20-test-server
build: proto build-verifier build-registry build-persistent build-mockas build-apigw build-ui build-vc20-test-server

build-verifier:
$(info Building verifier)
Expand Down Expand Up @@ -149,10 +144,6 @@ build-wallet:
$(info Building wallet)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./bin/$(NAME)_wallet ${LDFLAGS} ./cmd/wallet/main.go

build-verifier-proxy:
$(info Building verifier-proxy)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./bin/$(NAME)_verifier-proxy ${LDFLAGS} ./cmd/verifier-proxy/main.go

# Build targets with optional features (build tags)
# Usage: make build-issuer-hsm (builds issuer with PKCS#11 HSM support)
# make build-apigw-saml (builds apigw with SAML support)
Expand Down Expand Up @@ -195,7 +186,7 @@ test-all-tags:
$(info Testing with all build tags)
go test -tags "saml,oidcrp,vc20,pkcs11" -v ./...

docker-build: docker-build-verifier docker-build-registry docker-build-persistent docker-build-mockas docker-build-apigw docker-build-issuer docker-build-ui docker-build-verifier-proxy
docker-build: docker-build-verifier docker-build-registry docker-build-persistent docker-build-mockas docker-build-apigw docker-build-issuer docker-build-ui

docker-build-gobuild:
$(info Docker Building gobuild with tag: $(VERSION))
Expand Down Expand Up @@ -233,10 +224,6 @@ docker-build-wallet:
$(info Docker building wallet with tag: $(VERSION))
docker build --build-arg SERVICE_NAME=wallet --tag $(DOCKER_TAG_WALLET) --file dockerfiles/worker .

docker-build-verifier-proxy:
$(info Docker building verifier-proxy with tag: $(VERSION))
docker build --build-arg SERVICE_NAME=verifier-proxy --tag $(DOCKER_TAG_VERIFIER_PROXY) --file dockerfiles/worker .

# Docker build targets with build tags
# Usage: make docker-build-apigw-saml VERSION=1.0.0
# make docker-build-issuer-hsm VERSION=1.0.0
Expand Down
170 changes: 0 additions & 170 deletions bootstrapping/verifier-proxy/DOCKER_INTEGRATION.md

This file was deleted.

Loading
Loading