HTTP OAuth 2-legged (even called 0-legged) authentication strategy for Passport.
Want to see pretty graphs? Log in now!
npm install passport-oauth-2-legged
|2||downloads in the last week|
|2||downloads in the last month|
|Last Published By|
|Version||0.1.8 last updated 11 months ago|
|Keywords||passport, http, oauth, authn, authentication, authz, authorization, 2-legged, api|
Oauth 2-legged strategy for passport
This oauth strategy is used for a 2-legged scenario (even called 0-legged). Its a consumer to server authentication where each request is signed as defined in oauth but an empty access_token is used. No user data is exposed, as it is the consumer that has access to the protected resource.
It works as https://github.com/jaredhanson/passport-http-oauth but skips the access_token verification step and accepts empty access_tokens.
The cose base is 98% https://github.com/jaredhanson/passport-http-oauth but adapted for the 2-legged scenario. So thanks jaredhanson for all work!.