This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
Releases: vapor/auth
Releases · vapor/auth
Auth 2.0.4
Auth 2.0.3
Fix issue where people taking the latest release would get compile errors from pulling in incorrect Vapor version
Auth 2.0.2
Auth 2.0.1
Auth 2.0.0
Auth 2.0 is here 🎉
👤 Authentication and Authorization framework for Fluent (Authorization coming soon).
The Auth API Template has also been updated:
vapor new Hello --template=auth-template
Docs:
https://docs.vapor.codes/3.0/auth/getting-started/
API Docs:
https://api.vapor.codes/auth/latest/Authentication
Auth 2.0.0 RC 5
Fixed:
- Updated to latest Fluent RCs.
Auth 2.0.0 RC 4.1
Auth 2.0.0 RC 4
New:
- Added
GuardAuthenticationMiddleware
. Authentication middlewares will no longer fail if they cannot authenticate a user. This allows the package's middlewares to be composed together to do multiple authentication types on a single route.
Use Authenticatable.guardAuthMiddleware()
to restore this error throwing behavior.
let protected = router.grouped(
User.basicAuthMiddleware(...),
User.guardAuthMiddleware()
)
protected.get("test") { req in
return "This route is protected"
}
note: calling
requireAuthenticated
will always throw an error ifUser
is not authed, regardless of the presence ofGuardAuthenticationMiddleware
.
Fixed:
Authenticatable
protocols have hadModel
requirements removed. Free conformance still applies whereModel
conformance exists.Crypto
module is now being exported by default.
Milestone:
2.0.0-rc.4
Auth 2.0.0 RC 3.1
New:
- Added
req.unauthenticate(...)
method to unauth the user for the lifetime of the request.
Fixed:
- Using
http
dependency now.
Auth 2.0.0 RC 3
New:
- Vapor is now running on Swift NIO!
Fixed:
- Fixed some issues with session persistence using MemorySessions.