jaredhanson / passport-http

HTTP Basic and Digest authentication strategies for Passport and Node.js.
https://www.passportjs.org/packages/passport-http/?utm_source=github&utm_medium=referral&utm_campaign=passport-http&utm_content=about
MIT License
268 stars 110 forks source link

cannot logout #6

Closed rbucker closed 11 years ago

rbucker commented 11 years ago

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

jaredhanson commented 11 years ago

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?

rbucker commented 11 years ago

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/jaredhanson/passport-http/issues/6#issuecomment-13995629.

jaredhanson commented 11 years ago

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().

rbucker commented 11 years ago

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/jaredhanson/passport-http/issues/6#issuecomment-13995857.

jaredhanson commented 11 years ago

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

pateljatin commented 11 years ago

Hi rbucker881,

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

Thanks, Jatin

rbucker commented 11 years ago

Thanks, but no.