Swiftpack.co - Package - vapor-community/Imperial

Imperial

Imperial is a Federated Login service, allowing you to easily integrate your Vapor applications with OAuth providers to handle your apps authentication.

Attribution

Author(s): @calebkleveter

License

All code contained in the Imperial package is under the MIT license agreement.

Github

link
Stars: 26
Help us keep the lights on

Dependencies

Used By

Total: 1

Releases

0.6.0 - Apr 2, 2018

Neo

Take the red pill. It's worth it.

0.5.3 - Mar 19, 2018

Vapor 3

Imperial and its documentation has been updated for Vapor 3 RC. Have fun!

0.4.0 - Jan 20, 2018

Vapor 3

Now ported to Vapor 3! Use version 0.3.0 if you are on Vapor 2.

You can now conform to FederatedCreatable so you can create an instance of a model from a service and store it in a session:

let user = request.create(User.self, from: .github)
let user = request.fetch(User.self)

(This is how it is supposed to work. Haven't tested it yet 😉.)

0.3.0 - Nov 14, 2017

Google Auth

Federated Login with Google is now implemented!

0.2.0 - Nov 13, 2017

Middleware

Imperial Middleware is now ready, allowing you to protect routes that require authentication and to redirect a user if they try to access a protected route.