Documentation
¶
Overview ¶
Package clientfixture converts OAuth client fixtures into the registration the registry accepts. It lives outside the clients package so tests under auth/federation and auth/oauth/server can share one conversion: the clients package's own helpers are unexported, and a package clients test file already imports internal/testutil, so the parent package cannot import clients back.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegistrationFor ¶
func RegistrationFor(c *clients.Client) clients.Registration
RegistrationFor hashes c.Secret, which stays plaintext for auth; the registration carries only the digest. Every field must be set; omitting one silently loses coverage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.