Documentation
¶
Overview ¶
Standalone OAuth test server for browser-based testing (Playwright).
Usage:
go run ./tests/oauthserver/cmd/server -port 9000 go run ./tests/oauthserver/cmd/server -port 9000 -no-dcr -no-device-code go run ./tests/oauthserver/cmd/server -port 9000 -detection=www-authenticate
Fake OpenID Provider for the server edition (Spec 107, research D2):
go run ./tests/oauthserver/cmd/server -port 9000 -oidc \ -redirect-uri http://127.0.0.1:18080/api/v1/auth/callback \ -user 'alice@example.com:pass:eng,sre' -user 'bob@example.com:pass:' \ -groups-claim groups
Tamper knobs for the US2 matrix: -token-error <name>, -groups-error <name>, -userinfo-error <name>, -userinfo-sub-mismatch, -email-verified=false, -discovery-http-token-endpoint, -token-endpoint-redirect (see -help).
This starts the OAuth test server on http://localhost:9000 with:
- Authorization endpoint: /authorize
- Token endpoint: /token
- Discovery: /.well-known/oauth-authorization-server and /.well-known/openid-configuration
- JWKS: /jwks.json
- DCR: /registration (if enabled)
- Device code: /device_authorization (if enabled)
- Userinfo: /userinfo (with -oidc)
Test credentials: testuser / testpass (or the -user entries)
Click to show internal directories.
Click to hide internal directories.