Skip to content

privacybydesign/veramo-mock-as

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

veramo-mock-as

Mock OAuth2 / OpenID authorization server used by the irmago OpenID4VCI integration tests against the veramo-agent issuer.

It implements just enough of the OAuth2 / OpenID spec to complete an authorization-code flow against the issuer; there is no real login, no signature verification, and no persistence. The server is intended for tests only — do not deploy it.

Endpoints

Route Method Purpose
/.well-known/oauth-authorization-server GET OAuth2 discovery metadata
/.well-known/openid-configuration GET OpenID discovery metadata (same payload as above)
/jwks GET Empty JWK Set (signatures are not checked)
/authorize GET Returns an auth code immediately
/token POST Exchanges an auth code for an access token
/introspect POST Validates a token and returns the associated issuer_state

Configuration

Variable Default Purpose
LISTEN_ADDR 0.0.0.0:9090 Address the server binds to
EXTERNAL_URL http://localhost:9090 URL that wallets/clients use to reach the server

Running

docker run --rm -p 9090:9090 ghcr.io/privacybydesign/veramo-mock-as:latest

Or build from source:

go build -o mock-as .
./mock-as

About

Mock Authorization Server for Veramo Agent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors