Skip to content

flipp5b/telegram-bot-oidc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot with OpenId Connect authentication

This project demonstrates how to implement authentication in Telegram bot using OpenId Connect (OIDC).

Implementation tools:

This demo comprises of two services:

  • Telegram bot
  • OpenId provider

Building

Ensure you have JDK 11. To build the project run:

./mvnw package

Running

Ensure you have Docker and Docker Compose installed.
Create file .env in project root directory using .env.template as a base. Specify correct values for the following entries:

  • BASEURL: http://address:8080 where address is an IP address/domain name of your host.
  • OIDC_KEYCLOAK_BASEURL: http://address:8180 where address is an IP address/domain name of your host (do not use localhost).
  • BOT_USERNAME: name of your telegram bot.
  • BOT_TOKEN: token of your telegram bot.

Ok. Now, run the demo using following command:

docker-compose up --build

About

Telegram Bot with OpenId Connect authentication. Demo project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published