Authentication middleware for connect.
JavaScript
Switch branches/tags
v0.1.3 v0.1.2 v0.1.1 v0.1.0 v0.0.3 v0.0.2 upstream/0.2.1 upstream/0.2.0 hudson-connect-auth-65 hudson-connect-auth-64 hudson-connect-auth-64-SUCCESS hudson-connect-auth-63 hudson-connect-auth-62 hudson-connect-auth-61 hudson-connect-auth-61-SUCCESS hudson-connect-auth-60 hudson-connect-auth-59 hudson-connect-auth-59-SUCCESS hudson-connect-auth-58 hudson-connect-auth-58-SUCCESS hudson-connect-auth-57 hudson-connect-auth-57-SUCCESS hudson-connect-auth-56 hudson-connect-auth-56-SUCCESS hudson-connect-auth-55 hudson-connect-auth-55-SUCCESS hudson-connect-auth-54 hudson-connect-auth-54-SUCCESS hudson-connect-auth-53 hudson-connect-auth-53-SUCCESS hudson-connect-auth-52 hudson-connect-auth-51 hudson-connect-auth-50 hudson-connect-auth-49 hudson-connect-auth-49-SUCCESS hudson-connect-auth-48 hudson-connect-auth-47 hudson-connect-auth-47-SUCCESS hudson-connect-auth-46 hudson-connect-auth-46-SUCCESS hudson-connect-auth-17 hudson-connect-auth-16 hudson-connect-auth-16-SUCCESS hudson-connect-auth-15 hudson-connect-auth-15-SUCCESS hudson-connect-auth-14 hudson-connect-auth-14-SUCCESS hudson-connect-auth-13 hudson-connect-auth-13-SUCCESS hudson-connect-auth-12 hudson-connect-auth-12-SUCCESS hudson-connect-auth-11 hudson-connect-auth-10 hudson-connect-auth-9 hudson-connect-auth-8 hudson-connect-auth-7 hudson-connect-auth-6 hudson-connect-auth-5 hudson-connect-auth-4 hudson-connect-auth-3 hudson-connect-auth-2 hudson-connect-auth-2-SUCCESS hudson-connect-auth-1 debian/0.2.1-0sg65 debian/0.2.1-0sg64 debian/0.2.1-0sg62 debian/0.2.1-0sg61 debian/0.2.1-0sg59 debian/0.2.1-0sg58 debian/0.2.1-0sg57 debian/0.2.1-0sg56 debian/0.2.1-0sg55 debian/0.2.1-0sg54 debian/0.2.1-0sg53 debian/0.2.1-0sg52 debian/0.2.1-0sg51 debian/0.2.1-0sg50 debian/0.2.1-0sg49 debian/0.2.1-0sg48 debian/0.2.1-0sg47 debian/0.2.1-0sg46 debian/0.2.1-0sg17 debian/0.2.1-0sg16 debian/0.2.1-0sg15 debian/0.2.1-0sg14 debian/0.2.1-0sg13 debian/0.2.1-0sg12 debian/0.2.0-0sg2 0.0.1
Nothing to show
Pull request Compare This branch is 17 commits ahead, 180 commits behind ciaranj:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
debian
examples
lib
spec
support
test
.gitmodules
Makefile
README.md
package.json

README.md

connect-auth

Useful authentication strategies based on warden. Available as a npm package.

Provides out of the box authentication strategies for:

  • HTTP Basic - sole or negotiated
  • HTTP Digest - sole or negotiated
  • Anonymous
  • Never
  • Facebook connect (OAuth 2)
  • Github (OAuth 2)
  • Yahoo (OAuth 1.0A)
  • Twitter (OAuth 1.0)
  • RPXNow / janrain SSO
  • Foursquare (thanks to http://github.com/stunti)
  • Custom OAuth Provider Strategy (Be your own 1.0A OAuth provider!) (A Port of Christian Amor Kvalheim's express-oauth-plugin)

Take Care!

-cj.

Testing

% make

Running with npm

% npm install connect-auth
% node examples/connect-testing.js

Edit /etc/hosts to include the following entry

% grep twit /etc/hosts
127.0.0.1    testtwitter.com

For basic auth

% open http://localhost:3000

For twitter auth

% open http://localhost:3000/twitter

Changelog

  • 0.2.1 Removed dead file that was seemingly breaking nDistro
  • 0.2.0
    Updated HTTP strategies c/o Robbie Clutton no longer require passwords to be stored in the plain. - Breaking change
    Changed the default javascript file from auth.js to index.js. - Breaking change
    Fixed the isAuthenticated mechanism to work with mongodb (Lakin Wecker, Richard Walsh)
    Realm parameter now ignored in the Authorization header for the OAuth Provider strategy (Wade Simmons)
  • 0.1.3
    Strategies can now be written that do not require the session middleware.
  • 0.1.2
    Added in new strategy that allows your authentication strategy to be a custom OAuth provider.
  • 0.1.0
    New simplified configuration (connect idiomatic) of strategies implemented.