Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't understand. What part of this requires that one considers knowledge of the ID sufficient for access? And what kind of access are you talking about?

The performance benefits of index friendly user IDs seem like they would apply even if all user info is secret and requires a token to access... The application still has to look up the user by ID after all?

If I imagine a basic authenticated "get information about me" style endpoint, that would take a user ID and an authentication token. Checking if the token is valid is faster if the user ID is index friendly. Getting the requested information is faster if the user ID is index friendly. Yet a user of the API still needs both the user ID and a token to access anything.



> Yet a user of the API still needs both the user ID and a token to access anything.

Ideally yeah.

In practice, it varies...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: