Swiftpack.co - Package - vapor/fluent

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.


Vapor ORM (queries, models, and relations) for NoSQL and SQL databases


Stars: 1057
Last commit: 1 week ago


Add default implementation for CredentialsAuthenticatable - 2020-12-08T09:56:43

This patch was authored and released by @0xTim.

Improves the experience for users writing web applications. Adds a ModelCredentialsAuthenticator to automatically conform Model types to CredentialsAuthenticatable and provide a middleware to use.

This can be used when logging in users via a web form, as shown in the tests. This also backfills some tests for ModelSessionAuthenticatable.

Also fixes a bug where the SessionAuthenticator was not using the provided DatabaseID

Resolves #710 Resolves #701

Docs here vapor/docs#576