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
AuthHost | What AuthServer.host returns. |
HostConfig | What AuthServer.host takes. |
ResolverConfig | What AuthServer.resolver takes. |
VerifiedSession | The part of a session this package reads; the application's principal reads the rest. |
Types
HttpOptions | The Http.make options this package reads: the same object, so the two agree. |
NavigationResolver | A resolver pageReader takes, and no serveFetch: it reads the cookie of a navigation, which can be sent from any site. |
Resolver | Who a request is: a visitor, someone, or refused. |
ScriptedResolver | A resolver serveFetch takes, and no page reader: it asks for a script's CSRF header. |
SessionVerifier | The Auth service of Auth.make(…), as far as this package uses it: verifying a credential outside Yielded's own HTTP middleware. |
YieldedAuth | The Yielded application Http.make mounts (Auth.make(…)), typed as far as AuthServer.host reads it. |