Skip to content

SMFloris/rolling-qr-code-chatroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rolling QR Code - FastApi implementation

A simple chat room application showing an example Rolling QR Code implementation for initial auth.

For each chat room, the QR Code changes periodically. Once the user scans the code and follows the link, the server initializes a session via a cookie.

The chat is a simple websocket implementation - that bases its auth on the cookie set previously.

Features

  • Multiple room support (active users, hidden/public rooms)

Rooms

  • Rolling QR Code

QR

  • Session based websocket auth

Chat

How to run

# install dependencies
pip install -r requirements.txt

# run with uvicorn
uvicorn app:app
# quick and dirty run in local network
BASE_URL="http://$(ip -4 addr show <interface> | grep -oP '(?<=inet\s)\d+(\.\d+){3}'):8000" uvicorn app:app --host 0.0.0.0

About

A FastApi simple example of a rolling QR code based auth for a chat room.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published