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

Lemmy JS SDK Integration #5

Open
tgxn opened this issue Jun 13, 2023 · 6 comments
Open

Lemmy JS SDK Integration #5

tgxn opened this issue Jun 13, 2023 · 6 comments

Comments

@tgxn
Copy link
Owner

tgxn commented Jun 13, 2023

Allow Configuring Instance/Username/Password to determine user subscriptions and allow users to one-click subscribe on their instance.

@tgxn tgxn added the frontend label Jun 13, 2023
@sunaurus
Copy link
Contributor

I would caution against collecting usernames and passwords - even if you have no bad intentions, it makes your service an attractive target for attackers who are interested in intercepting these passwords!

@tgxn
Copy link
Owner Author

tgxn commented Jun 17, 2023

I had no intention of storing it, i was thinking fully client sided.

It looks like it's not possible to call the API's directly from my JS because of XSS requests on Lemmy servers, so I'll just make it so you can choose an instance 🤷‍♂️

if anyone comes up with something else (maybe a browser extension?) can open a new issue

@tgxn tgxn closed this as completed Jun 17, 2023
@tgxn
Copy link
Owner Author

tgxn commented Jun 19, 2023

This might be possible with an instance custom setting to allow CORS from us.

LemmyNet/lemmy#3191

@tgxn
Copy link
Owner Author

tgxn commented Jun 26, 2023

Re-opening as this may be possible as long as CORS is configured correctly (*) on the instances.

@tgxn tgxn reopened this Jun 26, 2023
@tgxn
Copy link
Owner Author

tgxn commented Jun 26, 2023

Sites would need to configure LEMMY_CORS_ORIGIN=*

@tgxn tgxn self-assigned this Jun 26, 2023
@tgxn tgxn removed their assignment Jul 1, 2023
@tgxn
Copy link
Owner Author

tgxn commented Dec 31, 2023

This is possible and I use it for lemmy modder. I'll have to re-visit this in the new year

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

2 participants