Documentation
¶
Overview ¶
Package aaguidgen builds the webauthn package's authenticator name table from the community passkey AAGUID list at https://github.com/passkeydeveloper/passkey-authenticator-aaguids.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
Fetch requests url and returns the response body for Run to read. The caller closes it. Any status but 200 is an error.
func ReadCommit ¶
ReadCommit returns the value of the aaguidListCommit string constant declared in the Go file at path, refusing anything but a full lowercase commit hash.
Types ¶
type Output ¶
type Output struct {
Table []entry // the merged table, sorted by AAGUID
Source []byte // gofmt'd webauthn/aaguids_gen.go
Snapshot []byte // name-only copy of the list, itself valid Generate input
Kept []entry // extra entries the list lacks, sorted by AAGUID
Covered []entry // extra entries the list now has, sorted by AAGUID
}
Output is everything one generation produces.
func Generate ¶
Generate validates an aaguid.json document taken from commit of the community list and renders the table. It refuses a commit that is not a full lowercase hash, an empty or invalid-UTF-8 document, a key that is not a lowercase UUID, and an entry whose name is missing, empty, padded, unprintable or longer than 64 runes. Only the names are kept; every other field is dropped.