-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Hi.
I am trying to use telegram oauth in our service with tdlib on client.
I checked telegram login widget but it has no required feature:
after oauth login I should use client tdlib features without auth repeat on client
Expected flow:
- User opens oauth webpage
- User success login
- Webpage uses tdlib and gets info about user
- After successful login server sends to client telegram token or something else.
- Client passes the token to tdlib on its side.
- Client uses default tdlib interface
I plan to change tdlib implementation to support this behavior.
But there are some difficulties:
- several dc. token is linked to dc.
- token has binary format
- there are many settings besides token that could potentially affect auth.
- there is no simple way to set token from authmanager. token is set inside session code.
Can I support the expected flow without complex tdlib changes? Is my flow realizable? Or are there any alternatives?
Metadata
Metadata
Assignees
Labels
No labels