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

Support for Fediverse login #97

Open
aswathrao opened this issue Dec 20, 2022 · 6 comments
Open

Support for Fediverse login #97

aswathrao opened this issue Dec 20, 2022 · 6 comments

Comments

@aswathrao
Copy link

Should indielogin include Fediverse credentials, like it supports Github (& how Twitter used to work) credentials? I am not sure whether it has already been considered. Thanks.

@aaronpk
Copy link
Owner

aaronpk commented Dec 20, 2022

Ideally any Fediverse software would support IndieAuth so that it works with indielogin.com and others directly.

@aswathrao
Copy link
Author

I am afraid I didn't clearly describe what I am looking for. I would like to add my id from a Fediverse service to my web address and indieauth.com will use that to authenticate me at a third site. Please see the attached screenshot for the error message.
indieauth-mastodon

@aaronpk
Copy link
Owner

aaronpk commented Dec 20, 2022

hmm, that's tricky. I don't know a good way to do that regardless of whether it's IndieAuth or Mastodon's specific API. I think we'd need some other rel attribute to indicate that a site might be an IndieAuth provider.

@aswathrao
Copy link
Author

Thanks. Probably ping you on a scheme that I am thinking of after I ensure it is a meaningful one.

@Jak2k
Copy link

Jak2k commented Dec 8, 2024

What about trying to call the Mastodon-API route for registering an app? If it's not successful, it's not Mastodon. Otherwise everything that's needed for OAuth is already there. As a bonus, you could keep the result of the check (& the client-id/-secret) in a cache/db.

The API should be quite straightforward to use: https://shkspr.mobi/blog/2024/12/creating-a-generic-log-in-with-mastodon-service/

@aaronpk
Copy link
Owner

aaronpk commented Dec 8, 2024

The problem is knowing what type of provider an arbitrary URL is. I'm not going to go hit /api/v1/apps for every hostname that shows up as a rel=me link just to check whether it's Mastodon. Plus, Mastodon is (at least in theory) in the process of fixing their OAuth API to not require dynamic client registration, so I don't want to write any new code specific to Mastodon right now anyway.

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

No branches or pull requests

3 participants