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 ¶
const ( PBKDF2Plaintext = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" PBKDF2Digest = "$pbkdf2-sha512$20000$$dsRQypqyPrhgUZpb9f65DIOwVu3D1Us5Me/KWRhGKeP3LwQ3j5spA2YzjstCa.VXtdaEmqgb.vF5WRJoXjk6.g" )
PBKDF2Digest is Doorkeeper's Pbkdf2Sha512 transform of PBKDF2Plaintext, the one PBKDF2 shape gitlab-rails wrote (hashers.PBKDF2Pattern).
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.