Documentation
¶
Overview ¶
package: noauth / authn type: adapter job: authenticate every request as one fixed subject — the no-auth backend limits: no credential checking; for single-tenant/dev stacks (-> auth.New)
Package noauth is the open authentication backend: it ignores the request credential and returns one configured subject for every call. It suits a stack with no external auth — a single operator, a dev box, a trusted network — where authorization still keys on the returned subject.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth is the no-auth backend: every Authenticate returns the same subject.
func New ¶
New returns a no-auth backend that authenticates every request as the section's "subject" value. An empty or absent subject defaults to "anonymous" so downstream authorization always has a non-empty account to key on.
func (*Auth) Authenticate ¶
Authenticate ignores the token and returns the configured account with no caveats — the open backend never attenuates.