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

feature request: Telegram Connector #3669

Closed
jay-dee7 opened this issue Feb 22, 2023 · 4 comments
Closed

feature request: Telegram Connector #3669

jay-dee7 opened this issue Feb 22, 2023 · 4 comments
Labels

Comments

@jay-dee7
Copy link
Contributor

What problem did you meet?

Telegram is definitely one of the most popular chatting platform. While going through the connectors list, I realised there's none for Telegram.
I even went on to try and build a custom Connector for Telegram but I'm not able to wrap my head around how to do it. I went through the docs but no luck so far.

Describe what you'd like Logto to have

Would it be possible to add Telegram as a connector? I've seen other projects to simply ignore it based on complexity of the how Telegram does OAuth (which is totally a pain-point).
For eg: nextauthjs/next-auth#2406

Can support for Telegram be added? I'd be happy to contribute but I need some help since I can't quite get the flow right

Telegram success API returns the following response in query params:

id=<number, userid>
first_name=<string>
username=<telegram username>
photo_url=<profile_pic_url, string>
auth_date=<unix timestamp>
hash=<hash of the data, useful for checksum validation>

They do not return an auth token (at least I'm not aware of it). All you can do is an integrity check on the response you receive (something like a checksum validation). I can go a bit more in detail if someone's up for the task or maybe help me with it?

@wweevv-johndpope
Copy link

wweevv-johndpope commented Mar 1, 2023

I was stuck with sign in via apple native + supabase using swift and apple's official demo code for apple sign in -
long story short - it's possible to setup a half way house - self hosted code to interact directly to postgres database / bypassing javascript sdk - I'd prefer and beseech supabase to push this upstream (to gotrue) but you could follow this pattern to validate credential - then basically create a user - I still need help to get a valid jwt.

here's nodejs code

https://github.com/johndpope/Sign-in-with-Apple-for-supabase/blob/master/server.js

related
supabase-community/gotrue-swift#4

UPDATE
this maybe a better fit for user creation rather than bypassing using postgres
https://next-auth.js.org/adapters/supabase

@gao-sun
Copy link
Member

gao-sun commented Mar 16, 2023

sorry we missed this. telegram connector is great to have. did you entering the Discord server? since we have some users discussing Telegram connector there

@gao-sun gao-sun added the feature Cool stuff label Mar 16, 2023
@gao-sun
Copy link
Member

gao-sun commented Mar 16, 2023

@wweevv-johndpope did you post accidentally? didn't see the comment is related to Logto.

@gao-sun gao-sun transferred this issue from logto-io/connectors Apr 3, 2023
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Apr 14, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants