Auth / API

foldkit-auth/server

foldkit-auth/server: a Yielded Auth session as the principal a Foldkit Plus host answers as. A request's session cookie is verified with the application's own Auth service; what the session is in the application's terms (the guard set's principal, say) is the application's principal.

Namespaces

Interfaces

AuthHostWhat AuthServer.host returns.
HostConfigWhat AuthServer.host takes.
ResolverConfigWhat AuthServer.resolver takes.
VerifiedSessionThe part of a session this package reads; the application's principal reads the rest.

Types

HttpOptionsThe Http.make options this package reads: the same object, so the two agree.
NavigationResolverA resolver pageReader takes, and no serveFetch: it reads the cookie of a navigation, which can be sent from any site.
ResolverWho a request is: a visitor, someone, or refused.
ScriptedResolverA resolver serveFetch takes, and no page reader: it asks for a script's CSRF header.
SessionVerifierThe Auth service of Auth.make(…), as far as this package uses it: verifying a credential outside Yielded's own HTTP middleware.
YieldedAuthThe Yielded application Http.make mounts (Auth.make(…)), typed as far as AuthServer.host reads it.