Skip to content

liranfar/python-login-https-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Simple HTTPS Server - Login Page

A login page implemented by using only Python core libs, bootstrap and jquery.

When the user is logged in - a list of active users is displayed.

Technologies

  • Python 3.5.2
  • Jquery 3.3.1
  • Bootstrap 4
  • Sqlite 3

Preconditions & Assumptions

  • No sign-up page - data is pre seeded with a script.
  • Registered users details is listed in config.py

Usage

1. create/enable virtual environment

$ virtualenv -p python3 venv
$ source venv/bin/activate

2. database - create and seed

(venv)$ python db.py create seed
  • mydb.db file should be created in data/
  • to print out the data simply run python db.py select-<table_name> (table_name= users or sessions)

3. running the server

(venv)$ python login_server.py
Enter PEM pass phrase : 1234

install the security/cert.pem file on your browser.

open your browser on https://localhost:4443.

Resources

  1. Simple Python HTTP/S server
  2. Python web programming
  3. python http server official docs
  4. static server in python
  5. sqlite in python
  6. Bootstrap 4
  7. session-authentication-vs-token-authentication

About

implementation of login page using simple http server with security and session managment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published