Telegram Passport login SSO
-
With new telegram passport api
Introducing Telegram Passport
Meet Telegram Passport – a unified authorization method for services that require personal identification.
Telegram (telegram.org)
-
@julian said in Telegram Passport login SSO:
Hm, that's interesting. https://core.telegram.org/passport
Once someone makes an npm module for it it'll be easier, but all the tools are there
-
@julian said in Telegram Passport login SSO:
Hm, that's interesting. https://core.telegram.org/passport
Once someone makes an npm module for it it'll be easier, but all the tools are there
do you mean something like this?
https://www.npmjs.com/package/telegram-passportos this one
passport-telegram-official
Telegram (not official, just the name) authentication strategy for Passport (https://core.telegram.org/widgets/login). Latest version: 2.0.1, last published: 3 years ago. Start using passport-telegram-official in your project by running `npm i passport-telegram-official`. There is 1 other project in the npm registry using passport-telegram-official.
npm (www.npmjs.com)
i dont have the knowledge to build it
-
@julian @exodo Hey guys. I started to look into this. I came across the following in the "passport-telegram-official" strategy.js file
/** * `TelegramStrategy` constructor. * * The Telegram authentication strategy authenticates requests by delegating to Telegram using their protocol: https://core.telegram.org/widgets/login * * Applications must supply a `verify` callback which accepts an `account` object, and then calls `done` callback sypplying a `user`, which should be set to `false` if the credentials are not valid. If an exception occurred, `error` should be set. * * More info here: https://core.telegram.org/widgets/login
This tells me that it doesn't use the OAuth 2.0 protocol. Do you have any ideas on strategies to implement this?
-
@julian said in Telegram Passport login SSO:
@exodo you never know, you might be able to do it... just take passport-facebook and change it to use passport-telegram? You might have to change a couple things here and there as well, but it might be quite easy...
@GarrettBryan said in Telegram Passport login SSO:
@julian @exodo Hey guys. I started to look into this. I came across the following in the "passport-telegram-official" strategy.js file
/** * `TelegramStrategy` constructor. * * The Telegram authentication strategy authenticates requests by delegating to Telegram using their protocol: https://core.telegram.org/widgets/login * * Applications must supply a `verify` callback which accepts an `account` object, and then calls `done` callback sypplying a `user`, which should be set to `false` if the credentials are not valid. If an exception occurred, `error` should be set. * * More info here: https://core.telegram.org/widgets/login
This tells me that it doesn't use the OAuth 2.0 protocol. Do you have any ideas on strategies to implement this?
no idea
-
Hello. Looking to integrate this in to my site. Does someone looking into this right now? I can take a look
-
@MintertalkOrg If you give us a shout at sales@nodebb.org, we can send over a quote