Se connecter avec Telegram

Are there any plans for integrating Telegram Login as an OAuth provider? Or someone that could do a plugin? :sweat_smile:

It has been released today, I tested and it’s really practical:

21 « J'aime »

I attach some screenshots of how it works:

5 « J'aime »

To be precise it’s not an implementation of the oauth protocol. Very interesting anyway.

2 « J'aime »

By the way, I’ve implemented Discourse SSO provider for Telegram Login, basing on the code from my SAML SSO provider:

https://github.com/kirushik/discourse_telegram_auth/

Also available from DockerHub, docker pull kirushik/discourse_telegram_auth.

Currently it’s completely untested, and lacks any documentation — but bugreports and feature requests are welcome.

10 « J'aime »

Any preview or demo? :sweat_smile:

Well, it’s available on the forum I’ve written it for — but it’s a special-interest group in Russian, so I don’t think sharing it here will be a good idea.

Meanwhile, using Telegram as SSO provider is not what most people want — so I think I’d spend some time turning my code in a proper auth plugin…

4 « J'aime »

It would be great if something like that could be implemented. I.e. login/signup on Discourse site thru telegram.
I’ve found that normal users are not able to login/signup to my forum simply because they never remember their emails ID and PWs. They just get someone to create an email account when they setup their new android phone, and then afterwards they never sign out or sign in to the same.

1 « J'aime »

Any progress there, just in case?
I was interested in making our site users to be able to create account and login thru telegram. This way they can dispense with email id/pw, and can create account and login with just their mobile number (and telegram app).

I’m also curious on this. Has anyone set it up successfully? I see both forks have not received updates since April of 2018.

1 « J'aime »

Would love to see this working, we have over 200,000 subscribers on Telegram and this would help us a lot.

1 « J'aime »

Love this project, is it still going well?

Well, the code is still there, and nothing should be broken in it (give or take the outdated and potentially vulnerable dependencies).
I no longer believe that abusing Discourse’s SSO APIs for logging in with Telegram is the right way to go, though (thus the repo is archived).

Much better solution would be a plugin adding a Telegram button to the supported auth options on the login popup/screen — but this would require quite a different approach, and I’m not aware of anyone trying to do this (even if it is 100% possible, and I remember seeing other plugins with similar functionality using other login networks somewhere out there)

4 « J'aime »

J’ai une v1 opérationnelle ici :

8 « J'aime »


J’ai un problème
échec d’inadéquation de signature lors de l’inscription

@mjsir911 avez-vous l’intention de continuer à travailler sur ce plug-in ? Outre les problèmes mentionnés dans le dépôt GitHub, il serait formidable de pouvoir récupérer l’identifiant unique et non le champ Nom, ainsi que le nom d’utilisateur. Utile pour un futur flux. Je peux le définir comme une tâche sur le Marketplace si quelqu’un est intéressé.

2 « J'aime »

Bonjour ! Je tiens à remercier @mjsir911 pour ce plugin formidable et très utile :raised_hands:

Je suis d’accord avec vous @Mr.X_Mr.X. Je voulais aussi demander à @mjsir911 comment puis-je supprimer la ligne pour entrer une adresse e-mail lors de l’inscription via un bot Telegram ? Dans mon cas, j’ai choisi ce plugin pour que les gens n’aient pas à passer par des étapes supplémentaires (surtout entrer leur adresse e-mail) pour s’inscrire. Lorsque j’allais installer ce plugin, j’étais sûr que l’e-mail ne serait pas demandé :frowning:

J’ai réussi ! :raising_hands:t2:

Mais, quand je clique sur « Se connecter avec Telegram » sur Discourse, je suis redirigé vers mysite.com/auth/telegram - et cela ressemble à ceci :

Savez-vous si ce site est configuré par le plugin ou quoi ? Je ne peux pas non plus modifier le CSS, car la page est en dehors du champ d’application des thèmes…

Est-ce que cela fonctionne toujours ? Je n’ai plus le bouton de connexion.

J’ai des problèmes pour faire fonctionner cela, quelqu’un peut-il me dire si cela fonctionne ?

1 « J'aime »

Salut tout le monde, j’ai aussi essayé de refaire le plugin, mais sans succès. \nCette ancienne version du plugin ne fonctionne pas non plus.\nJe suppose que je vais devoir trouver quelqu’un pour l’écrire à partir de zéro…\nPour moi, il est fondamental que tous les comptes aient une autorisation obligatoire et une connexion confirmée via Telegram. Si quelqu’un connaît la solution, veuillez écrire.