This repository has been archived by the owner on May 20, 2023. It is now read-only.
Replies: 1 comment 1 reply
-
Per-server Mastadon registration seems awkward, but not entirely surprising. I guess the most obvious way to confirm that assumption is to see how Tootle works 🙂 I'm not sure whether a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently working on adding the authentication workflow to the backend, and there are a few notes I want to share.
To my current understanding, Mastodon requires the app registration at the server the user is on.
This will likely mean that the backend will register an app locally, instead of us providing centralized app keys and secrets.
We could, to improve the authentication workflow, implement the redirect urls to redirect to the client, automatically fetching the authentication code instead of requiring copy-paste by the user.
This could work with an url like
cawbird://authentication?code=0000000
, redirecting to the application.To make this viable though we would likely need to open the auth site internally with WebKitGTK.
I'm probably using only OAuth 1.0 for Twitter, with Mastodon using OAuth 2.0, as Twitter's v1 API don't work with OAuth 2.0.
While this means one authentication is enough to use both Twitter backends, it will mean an re-do of the authentication should we want the v2 API-backend to switch to OAuth 2.0.
I'm considering using
libsecret
to store the tokens. As the database in current Cawbird only stores id, names and tokens anyway, we could store these more secure withlibsecret
in the local password storage. Though I need to check how broad support for the freedesktop Secrets API is outside of GNOME.Beta Was this translation helpful? Give feedback.
All reactions