Documentation
¶
Overview ¶
Package testutil holds helpers shared across package tests. Nothing in here ships in a binary — it is imported only from _test.go files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HydraAuthorize ¶
HydraAuthorize drives a real Hydra authorize flow: opens authURL in a cookie-carrying client, accepts the login request on the admin API as subject, accepts consent for the openid scope, and returns the authorization code. The caller exchanges it (Verifier.Exchange). The only human step faked is "who clicked accept" — every token is minted by real Hydra.
Expects a dev Hydra (`serve all --dev`, DSN=memory) with URLS_SELF_ISSUER matching the public URL, e.g.:
docker run -d --name veil-hydra-test -p 5555:4444 -p 5556:4445 \ -e DSN=memory -e SECRETS_SYSTEM=test-system-secret-0123456789abcdef \ -e OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=test-salt-0123456789abcdef \ -e URLS_SELF_ISSUER=http://127.0.0.1:5555 \ oryd/hydra:v26.2.0 serve all --dev
Types ¶
This section is empty.