Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Invalidating token properly #20

Open
newkillerbeast2017 opened this issue Mar 17, 2017 · 7 comments
Open

Not Invalidating token properly #20

newkillerbeast2017 opened this issue Mar 17, 2017 · 7 comments

Comments

@newkillerbeast2017
Copy link

I checked out the package, made no changes, connected to one of my existing databases and tested the following routes:

  1. POST - api/auth/login - token got generated
  2. DELETE - api/auth/invalidate - token invalidated
  3. GET - api/auth/user - expired token yet gets the data properly

Isn't it supposed to say unauthorized?

@krisanalfa
Copy link
Owner

Hi, thanks for reporting this issue. What HTTP code did you get? Sorry, but I can't reproduce this bug.

@newkillerbeast2017
Copy link
Author

Its not an error code. What I meant is, I login a user - a token is generated. I invalidate the user - a token should be blacklisted. I get the user details - still shows data whereas the token was expired earlier and had to be shown an error message. If you still cant get me, try the login, then use the generated token to invalidate. Next, use same token to try get user. It should not give user details but whereas it does.

@newkillerbeast2017
Copy link
Author

@krisanalfa were you able to reproduce?

@krisanalfa
Copy link
Owner

Hi @newkillerbeast2017, can u use this postman collection to reproduce the issue? I can't reproduce.

@rbnzdave
Copy link

rbnzdave commented Jun 9, 2017

Yeah I also don't have the ability to expire the token. the test for it is only checking for a response of 200, so fine, but check invalid token doesn't have an issue. Running authentication and then running invalidate doesn't affect the ability to view any protected material. It seems then then expire after a "while" when it complains of missing segments until authenticated again.

@TakesTheBiscuit
Copy link

I can't reproduce this

@krisanalfa
Copy link
Owner

Hi @rbnzdave it's been a while. Sorry for late reply. How's your issue status? Have you resolved this? Until now I can't reproduce this issue, so I cannot make any fix or help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants