-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Old tokens are not replaced or set invalid #1437
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
Comments
Ok i did some research, the login tokens are stored under What does this mean: So, if you want, you can close this or if you think token handling is fine this way. And all in all this is an issue of https://atmospherejs.com/simple/rest-accounts-password. I just wanted to give you the information i gathered. |
Is there a way to 'logout' the api? - I can't see one listed and various things I've tried don't seem to log the account out And this issue here, hints that I have probably created 50+ valid tokens recently |
I would presume tokens are time limited. Someone could look at code how tokens are created, are they saved to database, how to remove those, etc. Pull requests welcome. |
Tokens created by the API seem to have a 3 month expiry, so if any token 'leaks' it does seem a potential security risk. tokenExpires:"2021-04-29T10:52:22.234Z" |
There is another pressing issue. There is no way to set logout for 0Auth2 |
Uh oh!
There was an error while loading. Please reload this page.
When a new token is generated: by logging in with something like this:
curl http://127.0.0.1:24000/users/login -d "username=name&password=123"
You get a token for the auth to use the Rest API.
When i login in again to get a new Token, the old Token is still accepted as valid.
Shouldn`t the old token not be replaced by the new Token or set as invalid?
Come to think of it... the auth / login stuff is done by which package (is it https://atmospherejs.com/simple/rest-accounts-password ? ) ?
The text was updated successfully, but these errors were encountered: