-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
[feature] Request some API without Auth #2238
Comments
Thanks for opening! We'll have to have a think about this one. It would be nice if users could opt-in to exposing their profile via search, if the admin has decided to expose these endpoints, rather than the admin deciding that all users on the instance should be so exposed. Perhaps we could use the |
Being able to have a profile as public seems fine by me, but I don't think we should be removing auth from those endpoints. If I'm not logged in, and I search for someone on an instance, then I suppose it'll reach out to Using |
Thank you for your reply. I think the most important thing for me is also the public profile page. The APIs I listed (like As a backend-first app, I think providing a limited access to the profile API without logging in is a reasonable request. If I don't use the gotosocial web interface, there's something odd about the fact that I need to access the APIs of other mastodon servers to display public pages. But exactly which APIs to use is debatable. I may be overlooking a possible problem behind the scenes though. Surely a configurable API access control would be better. |
Just for a bit of clarity, can I ask what your use-case is for wanting to expose these APIs? My understanding currently is that you want to be able to deploy your own Elk instance, and point it towards your GoToSocial instance 'by default'. This would allow anyone (logged in or not) to access your Elk instance at eg So, that would be similar to the elk deployments at: Which use their respective instances as data providers even for the logged-out view. Is that correct? Or am I totally misunderstanding what you're wanting to do here? |
Yes, you're right. |
As discussed on Matrix, here's another usage currently prevented: |
apologies for the necropost, but i was setting up the same thing for my own website and was running into the same pitfalls as well. would also like to see this endpoint accessible without auth (given the privacy settings of the user allows it ofc) |
Is your feature request related to a problem ?
I'm using Elk as the front end. When I want to search a user's profile without login, the mastodon instance works well but the GoToSocial instance cannot access the API without authorization.
Successful Mastodon Examples (the official Elk deployment works with
m.webtoo.ls
mastodon instance):The reason is Mastodon allows some public API endpoints, But GoToSocial requires authorization for this API.
Related APIs:
/api/v1/accounts/lookup
/api/v2/search
Describe the solution you'd like.
Add some environmental variables to control whether to allow unauthorized requests and allow public API access like #1039
Describe alternatives you've considered.
NONE
Additional context.
No response
The text was updated successfully, but these errors were encountered: