-
Notifications
You must be signed in to change notification settings - Fork 56
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
Re-check Mastodon OAuth clients before using #1602
Comments
Hmm! I'm not sure. holonet.social, right? Bridgy's Mastodon auth is working fine with other instances right now; I wonder if it's something specific to that instance. I could debug a bit more if I had an account, but holonet.social says it's closed to new accounts right now, so I'm a bit stuck. |
Thank you for checking. It's a personal server, so I'm the only user. I'll check with the host and see if there's something blocking the connection. |
I checked with my host and this was thier response:
|
That's very odd. Bridgy's records show that it created an app for holonet.social at 2023-09-15 04:45:11 UTC with client id {
"id": "14",
"name": "Bridgy",
"website": "https://brid.gy/",
"redirect_uri": "https://brid.gy/publish/mastodon/finish\nhttps://brid.gy/mastodon/delete/finish\nhttps://brid.gy/mastodon/callback\nhttps://brid.gy/delete/finish\nhttps://brid.gy/micropub-token/mastodon/finish",
"client_id": "5im3Ar56XJV6nYBAy4z6f-dVqd3UKSHkVS9NQKW08-Y",
"client_secret": "...",
"vapid_key": "..."
} Here's a pruned version of the instance info Bridgy got from holonet.social at that time: {
"uri": "holonet.social",
"title": "Holonet Social",
"short_description": "Holonet Social is a galactic hub where beings gather to connect, share ideas, and engage in exciting conversations.",
"description": "",
"email": "[email protected]",
"version": "4.1.7",
"urls": {"streaming_api": "wss://holonet.social"},
"stats": {
"user_count": 1,
"status_count": 135,
"domain_count": 7488
},
"languages": ["en"],
"registrations": false,
"approval_required": false,
"invites_enabled": false,
"configuration": {"..."},
"contact_account": {
"id": "110639374792475459",
"username": "justin",
"acct": "justin",
"..."
},
"rules": ["..."]
} |
Did you maybe move the instance to a new host since Sept 15? Or recreate it, or do anything else that might have wiped the registered OAuth apps? In any case, it's easy to wipe this OAuth app from Bridgy's records and have it create a new one. I am still curious what happened though. |
@snarfed holonet.social is hosted with me on Masto.host and @justincox forward me a link to this thread to see if I could help. So, the instance has not moved server since Sept 15 and I can't think of a reason why this oAuth app would be deleted. Doing a query in the Also, I did a Bridgy test earlier today on a test Mastodon server on Masto.host and it worked fine. So, there I don't think there is any incompatibility with Masto.host. Somehow that record just got deleted. Unfortunately I don't have a log that goes back from Sept 15 that I could see all that happened and why that record was deleted but do let me know if there is something I can look for on my end. |
Thank you for looking @hugogameiro! Definitely an odd mystery. For now, I've archived this OAuth app on Bridgy's end and had it generate a new one, client id |
I had another report from a different instance with a similar problem but when authenticating with Buffer. Still had no response from Buffer regarding that. |
@snarfed That time it worked! Thank you. I'll leave the greater discussion about what is causing the issue to you and @hugogameiro |
@rg-wood yeah that fix was only for holonet.social, not your instance toot.io. I wonder if we're seeing the same problem there though. Bridgy created the OAuth app below on toot.io at 2023-04-22 10:29:09 UTC with client id {
"id": "16890",
"name": "Bridgy",
"website": "https://brid.gy/",
"redirect_uri": "https://brid.gy/micropub-token/mastodon/finish\nhttps://brid.gy/publish/mastodon/finish\nhttps://brid.gy/mastodon/delete/finish\nhttps://brid.gy/delete/finish\nhttps://brid.gy/mastodon/callback",
"client_id": "IynWaVvErkoTYf2lDByy5sSH1_m4Bx1Uipr_a3tuLi8",
"client_secret": "...",
"vapid_key": "..."
} |
I have access to the toot.io instance database and there is no app registered from Bridgy at 2023-04-22. |
Thank you for looking @wiegelmann! So odd. I'm very curious why Mastodon instances seem to be losing OAuth apps. In the meantime, @rg-wood I've archived this one on Bridgy's end too, feel free to try again. |
I just opened a ticket on GitHub with all the information I could gather: mastodon/mastodon#27740 |
Conclusion in mastodon/mastodon#27740 is to periodically call |
Deployed in snarfed/oauth-dropins@c127c28 |
Reopening due to #1644. The original fix here in snarfed/oauth-dropins@c127c28 worked for OAuth clients (apps) that we never generated an access token for, but not for clients that we generated a token for, but then that user revoked the token from inside Mastodon, and then Mastodon garbage collected that client. The fix for that is probably to delete an account's |
From mastodon/mastodon#27740 (comment):
|
attempts to expand the fix for #1602 / #1644 / mastodon/mastodon#27740
OK, I think this is fixed going forward now, a different way. |
I'm unable to set up a connection to Mastodon 4.2.1 and receive the following error message:
Is there a bug in Bridgy or did Mastodon change something that prevents the connection?
The text was updated successfully, but these errors were encountered: