fpm-auth: Telegram OAuth Integration #648
Replies: 4 comments 1 reply
-
@AbrarNitk also add |
Beta Was this translation helpful? Give feedback.
-
I have implemented Telegram Login functionality into fpm. I have used Telegram Login widget. By default Telegram uses iframe for adding Login button but in our case i have made customisations so that by clicking on our FTD button. It opens telegram login modal and users can login. In response it returns id,username,first_name,last_name,auth_date and hash. |
Beta Was this translation helpful? Give feedback.
-
For telegram we are using three telegram bot apis. Telegram Group telegram-group: Parameters chat_id=@group_name Telegram Group Admin telegram-admin: Parameters chat_id=@group_name Telegram Channel telegram-channel: https://api.telegram.org/bot{telegram-bot-token}/getChatMember Parameters chat_id=@channel_name Channel and Groups needs to be public if we want to get information about members. |
Beta Was this translation helpful? Give feedback.
-
#667
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Status: Pending
Follow: #585
Author: Wasif
Code PR: #661
Doc PR: Pending
Telegram Integration
We are integrating with a telegram in fpm, user will be able to log in via telegram on fpm sites. So we are going to provide some auth identities like
telegram-group: telegram-family
if a user is a part of this particular group, so only it will be able to access the page.Like, In the below example we are creating an
fpm.user-group
calledtelegram-family
with a single user identitytelegram-group
and using this group on/family/
, so if logged in user is part telegram grouptelegram-family
, so it can access this page.Auth APIs
Resources APIs
FPM Identities for Telegram
Telegram Group
telegram-group: <group-name>
Users can access pages/documents/APIs/apps if they are a part of a given group.
Telegram Group Admin
telegram-admin: <group-name>
The user can access pages/documents/APIs/apps if a user is an admin of a given group.
Telegram Channel
telegram-channel: <channel-name>
Users can access documents if they are subscribed to a given channel.
Telegram API to check chat member
Beta Was this translation helpful? Give feedback.
All reactions