jaredhanson/passport-http-bearer — pull request #19 by JesseFarebro (2014-05-08 01:14:03+00:00)
Title: Add the option for per Authentication options

With these two commits you can set per authentication options. As the only two options being realm and scope I find this extremely useful. For example if you had a rest API and the realm of the endpoint is something different than every other endpoint there is currently no way to configure that. With this patch you could do this:

passport.authenticate('bearer', {session: false, realm: 'Admin'});

If no options are found it defaults back to the options set when the strategy was created otherwise it just uses Users as the realm and no scope. Nothing has changed there.

If you have any feedback that would be great!