The Protevus Platform: Unified Full-Stack Development https://protevus.com
Find a file
thosakwe b00329f632 +1
2017-04-26 10:04:45 -04:00
.idea 1.0.4 2017-04-26 09:59:27 -04:00
lib +1 2017-04-26 10:04:45 -04:00
test 1.0.1 2017-03-02 16:30:27 -05:00
.gitignore +6 2016-09-21 02:19:52 -04:00
.travis.yml +10 2016-11-23 15:37:40 -05:00
LICENSE Initial commit 2016-05-02 19:39:57 -04:00
pubspec.yaml +1 2017-04-26 10:04:45 -04:00
README.md +1 2017-04-26 10:04:45 -04:00

angel_auth

version 1.0.4+1 build status

A complete authentication plugin for Angel. Inspired by Passport.

Documentation

Click here.

Supported Strategies

  • Local (with and without Basic Auth)

Default Authentication Callback

A frequent use case within SPA's is opening OAuth login endpoints in a separate window. angel_client provides a facility for this, which works perfectly with the default callback provided in this package.

auth.authenticate('facebook', new AngelAuthOptions(callback: confirmPopupAuthentication()));

This renders a simple HTML page that fires the user's JWT as a token event in window.opener. angel_client exposes this as a Stream:

app.authenticateViaPopup('/auth/google').listen((jwt) {
  // Do something with the JWT
});