Skip to content

Telegram Oauth & TDLib #1999

@MaxMyalkin

Description

@MaxMyalkin

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:

  1. User opens oauth webpage
  2. User success login
  3. Webpage uses tdlib and gets info about user
  4. After successful login server sends to client telegram token or something else.
  5. Client passes the token to tdlib on its side.
  6. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions