Skip to content
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

Let us add our Mastodon addresses #331

Open
backache opened this issue May 31, 2023 · 6 comments
Open

Let us add our Mastodon addresses #331

backache opened this issue May 31, 2023 · 6 comments

Comments

@backache
Copy link
Contributor

backache commented May 31, 2023

Can we add our Mastodon addresses to our profile so we may be tagged with a hyperlink in a similar way to what happens currently on T*****r

Currently the messages just have static text with something like "℅ MapSpot on github
CC BY-SA 4.0"

image

BTW I am https://mastodon.online/@back_ache

@edent
Copy link
Collaborator

edent commented May 31, 2023

We currently us Auth0 for login. I've asked them for Mastodon support. See https://community.auth0.com/t/mastodon-social-login/103400 for details.

It would help if you contacted Auth0 to let them know that this is a feature people want.
Or, alternatively, we need someone who can write a custom integration for Mastodon.

@sxa
Copy link

sxa commented Sep 18, 2023

I've had to authenticate via facebook but I'd much rather have done it via my mastodon account ... Bit of a shame they still don't seem to have a solution for this yet :-(

@edent
Copy link
Collaborator

edent commented Sep 18, 2023

I am working on this. The problem is that each Mastodon instance requires their own API key. So I either need several thousand integrations or I can just pick one or two popular instances.

If you know of any site which has a generic "Sign In With Mastodon" service - please let me know. Then I can try and work out how they've done it.

@paulwakeford
Copy link

https://pixelfed.blog/p/2023/feature/introducing-sign-in-with-mastodon-streamlining-sign-up-and-login-on-pixelfed appears to offer generic 'sign in with Mastodon' for their app, if that helps.

@carbontwelve
Copy link

The Mastodon Socialite plugin has code for doing the oAuth connection but expects you to have already registered as an app with the single Mastodon server to obtain the Client key and Client secret.

The way I have written this in the past is by having a table for storing client key, secret and instance url, if someone tried logging in via mastodon it asks for their instance url, if not already existing in that table the login request uses the Mastodon api to register with the instance as an app with limited scope, then continues with oAuth authentication as normal. This allows you to support all Mastodon instances (and others that implement the Mastodon API) without having to first preconfigure anything.

edent pushed a commit that referenced this issue Nov 30, 2024
@edent
Copy link
Collaborator

edent commented Nov 30, 2024

OK! You can preview logging in with Mastodon (and GoToSocial) at https://openbenches.org/mastodon_login

Please let me know if it works or breaks.

Once I'm happy with it, I'll add it to the list of Auth0 login providers.

Known bugs:

  • No way to retrieve profile image based on user's ID - so they just get a default icon on the leaderboard
  • Logging in from the Edit screen might return you to the Add page
  • More error checking if the supplied URl doesn't work
  • Let me know if you spot any more!

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

No branches or pull requests

5 participants