Namespace
Runtime\PS\Auth
Package auth implements Auth\Storage\*: the user database a login puts its credential to, and the record one answers with.
Description
Package auth implements Auth\Storage\*: the user database a login puts its credential to, and the record one answers with.
A site names its user database and never reads it, the rule docs/security.md states for a connection and a mail server. The only store here is an apache-format password file: a script names the file, this package reads the hashes and verifies against them, and no value holding a hash reaches PHP. A script gets a verdict, a primary key and a username.
A record derives its key from its username and a user database with no id column still has stable primary keys for other tables to carry. crypto.ULIDFrom is the derivation and stdlib/ps/auth/user.go is the record.
Session\Manager turns a verdict into a session; this package knows nothing about cookies. Importing it wires it in, and stdlib/imports.go does that.
- Package
stdlib/ps/authgodoc