No description
Find a file
2019-11-20 14:57:12 +05:00
scripts Get Admin Credentials script added 2019-11-20 14:57:12 +05:00
tests Fixed misconseption: Same name but different realm represent different people 2019-11-11 22:48:20 +05:00
.env.sample PORT added in .env.sample 2019-11-11 22:51:57 +05:00
.gitignore installation instructino added 2019-11-20 14:46:36 +05:00
app.py Fixed misconseption: Same name but different realm represent different people 2019-11-11 22:48:20 +05:00
config.py initial commit 2019-10-07 22:13:42 +05:00
helper.py Fixed misconseption: Same name but different realm represent different people 2019-11-11 22:48:20 +05:00
Pipfile installation instructino added 2019-11-20 14:46:36 +05:00
Pipfile.lock installation instructino added 2019-11-20 14:46:36 +05:00
README.md installation instructino added 2019-11-20 14:46:36 +05:00
schemas.py Fixed misconseption: Same name but different realm represent different people 2019-11-11 22:48:20 +05:00

uotp

uotp is a full blown authentication and authorisation service made for micro services. The basic idea is that every micro service has a (long term) triple constisting of (name, realm, seed) and creates time based tokens. This basically revamps Kerberos in a simple way into the web area. uotp has been created and is maintained by ungleich.

Technologies Used

  • Flask
  • PyOTP
  • Etcd

Installation

Alpine

# Update and Upgrade 
cat > /etc/apk/repositories << EOF
https://mirror.ungleich.ch/mirror/packages/alpine/edge/main
https://mirror.ungleich.ch/mirror/packages/alpine/edge/community
https://mirror.ungleich.ch/mirror/packages/alpine/edge/testing
EOF
apk update
apk upgrade

# Install Dependencies
apk add python3 git etcd etcd-ctl py3-grpcio
pip3 install pipenv

# Start etcd
# etcd don't start using `service etcd start` as its package have some issue
start-stop-daemon -b etcd

# Clone Repo
git clone https://code.ungleich.ch/ungleich-public/uotp.git
cd uotp

pipenv --three --site-packages
pipenv install 
cp .env.sample .env
pipenv run python app.py

Arch

# Install Dependencies
pacman -S python3 git
pamac build etcd
pip3 install pipenv

# Start etcd
systemctl start etcd

# Clone Repo
git clone https://code.ungleich.ch/ungleich-public/uotp.git
cd uotp

pipenv --three
pipenv install 
cp .env.sample .env
pipenv run python app.py

By default, it would run at port 8000.