Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

API to check if tokens are still valid, without changing password #7

Open
eddyystop opened this issue Nov 16, 2018 · 2 comments
Open

Comments

@eddyystop
Copy link
Member

Copied from feathersjs-ecosystem/feathers-authentication-management#2

@eddyystop
Copy link
Member Author

eddyystop commented on Apr 28, 2017

A concern about security for short numeric tokens is the main reason for not implementing this (yet?). A rate limiter would be advisable that limited the retries per userId, perhaps once every few seconds. That, in addition, introduces state restricted to a single instance. Furthermore a function to check this without a rate limiter is not difficult for people to implement on their own.

@eddyystop
Copy link
Member Author

eddyystop commented Nov 17, 2018

This issue is being left open for people considering this question. The a-l-m rewrite has hardened against hacking. Implementing a feature like that requested here would open an easier attack vector then we've ever had, which I am not willing to do.

If your use case requires this, despite making it easier to hack your app, then its straightforward to write a hook similar to https://github.com/feathers-plus/authentication-local-management/blob/master/src/verify-signup.js . I suggest you include a rate limiter to slow down hacking attempts.

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

No branches or pull requests

1 participant