jaredhanson / passport-http

HTTP Basic and Digest authentication strategies for Passport and Node.js.

Home Page:https://www.passportjs.org/packages/passport-http/?utm_source=github&utm_medium=referral&utm_campaign=passport-http&utm_content=about

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot logout

rbucker opened this issue · comments

I've tried everything from expressjs and connect's logout and logOut and it's just not working.

Can you describe this more concretely? What exactly have you tried, what is the behavior you expect to see, and what is actually happening? Are you using sessions, if so, what keys are in the session?

The sample code in the passport-http project does not include a mechanism
or function that would logoff the user. There are examples and doc in the
generic passport project where it talks about logOut() but it does not work
when called from within passport-http.

*

Richard Bucker *
*http://about.me/richard.bucker
*
*

On Sat, Feb 23, 2013 at 2:12 PM, Jared Hanson notifications@github.comwrote:

Can you describe this more concretely? What exactly have you tried, what
is the behavior you expect to see, and what is actually happening? Are you
using sessions, if so, what keys are in the session?


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-13995629.

The examples set session to false, so the authentication applies only to a single request. There is no active login session, so there's no reason to call logout().

interesting. That in itself is not working. For some reason it keeps
passing me through the authentication. Looks like I need to start from
scratch.... But maybe a good example with a logoff() ??? That would be very
helpful.

Thanks

*

Richard Bucker *
*http://about.me/richard.bucker
*
*

On Sat, Feb 23, 2013 at 2:24 PM, Jared Hanson notifications@github.comwrote:

The examples set session to false, so the authentication applies only to
a single request. There is no active login session, so there's no reason to
call logout().


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-13995857.

OK. Closing this now. If you can post some code that points to a specific issue I'll take a further look.

Hi rbucker881,

Were you able to force session to true and provide a logoff?

Thanks,
Jatin

Thanks, but no.