Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Releases: vapor/auth

Auth 2.0.4

11 Jun 23:39
e6f61b4
Compare
Choose a tag to compare

Fixed:

  • Session authentication middleware now correctly short-circuits if authentication already succeeded (#68, #69)

Auth 2.0.3

18 Feb 20:29
ed40278
Compare
Choose a tag to compare

Fix issue where people taking the latest release would get compile errors from pulling in incorrect Vapor version

Auth 2.0.2

12 Feb 19:27
9c71c8a
Compare
Choose a tag to compare

Fixed:

  • Fixed an issue where a new, empty session would be created after unauthenticating a user and destroying the session at the same time. (#60, #59)

Auth 2.0.1

14 Aug 18:27
9086862
Compare
Choose a tag to compare

Fixed:

  • Moved HTTP bearer and basic auth helpers to vapor/http package. (#54)
  • req.unauthenticate(...) now correctly destroys session. (#52)

Auth 2.0.0

09 Aug 19:53
Compare
Choose a tag to compare

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

15 Jun 17:32
Compare
Choose a tag to compare
Auth 2.0.0 RC 5 Pre-release
Pre-release

Fixed:

  • Updated to latest Fluent RCs.

Auth 2.0.0 RC 4.1

15 May 22:51
Compare
Choose a tag to compare
Auth 2.0.0 RC 4.1 Pre-release
Pre-release

Fixed:

  • Token authentication middleware no longer throws if not authenticated. (#42)
  • Fixed an issue where UserIDType typealias was required. (#41)

Auth 2.0.0 RC 4

09 May 02:30
c8594a4
Compare
Choose a tag to compare
Auth 2.0.0 RC 4 Pre-release
Pre-release

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 if User is not authed, regardless of the presence of GuardAuthenticationMiddleware.

Fixed:

  • Authenticatable protocols have had Model requirements removed. Free conformance still applies where Model conformance exists.
  • Crypto module is now being exported by default.

Milestone:
2.0.0-rc.4

Auth 2.0.0 RC 3.1

18 Apr 20:18
Compare
Choose a tag to compare
Auth 2.0.0 RC 3.1 Pre-release
Pre-release

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

21 Mar 22:49
Compare
Choose a tag to compare
Auth 2.0.0 RC 3 Pre-release
Pre-release

New:

  • Vapor is now running on Swift NIO!

Fixed:

  • Fixed some issues with session persistence using MemorySessions.

Milestone