| Post Reply | RetroFed Forum Forum Index » Tesseract |
| Author | Message | ||
|---|---|---|---|
Admiral Patrick
dubvee.org
ptz@dubvee.orgJoined: 2023-06-06 |
ProblemOne of the things that annoys me about Tesseract is that preferences, groups, and favorites are not synced between devices. The user preference keys available in the Lemmy API don't even begin to scratch the surface of what Tesseract needs to store, so to date, it has only exposed the API-based user settings that affect the behavior of the API (show bot accounts, is bot account, return unread posts only, etc). Every other setting as well as groups/favorites, are stored in the browser's local storage. For a long time, Tesseract has had a very hacky "solution" where Tesseract can (manually) backup and restore its settings to Lemmy by abusing the The other option implemented currently is manually downloading / restoring a JSON file and syncing that between devices manually. Neither of those are great, but they do work. Solutions?I'm looking for a solution that would allow only authorized users to POST/GET their own user settings, etc while minimizing overhead for the user. Basically, I want it to be as seamless as possible. I've listed a couple of options on which I'm looking for feedback, possible gotchas, etc. Other suggestions are welcome as well. Option 1: Utilize the Lemmy JWTSend the Pros
Cons
Option 2: DM-Based Auth TokensAfter a successful login (to any instance), Tesseract generates and sends a DM to the user with an auth token. That token would then be entered into the app settings (or perhaps picked up automatically by an app handler and automatically inserted?). Pros
Cons
Other OptionsIf you have any other suggestions, I'm all ears. Most of my experience with authz is in an enterprise environment (LDAP/OAuth) or with a single source of truth for user accounts. I try to never half-ass authz implementations, and this is no exception. If I can't make it secure and relatively seamless for the user, then I won't implement it at all. |
||
| 1 Original | |||
| Post Reply |
Back to top |