Skip to content

Flask based simple auth service. This application takes username/password and returns jwt token for authentication purpose.

Notifications You must be signed in to change notification settings

praveen-uofg/authservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this repository for?

This is the simple auth service developed in Python using Flask framework. There are 2 major components to this:

  • Flask App: REST APIs

How do I get set up?

Local

Create & Activate a Virtual Environment

sudo pip install virtualenv
virtualenv ~/Projects/venv/authservice-env -p python3.8.3
source ~/Projects/venv/authservice-env/bin/activate

Installing Requirements

pip install -r requirements.txt

Start the Flask Application

python app/flask_app.py

Local Docker

docker-compose -f build
docker-compose up

How to run tests

Install The App as a python package

pip install -e .

Run the Tests

pytest

Get the coverage Report

coverage run -m pytest
coverage report

About

Flask based simple auth service. This application takes username/password and returns jwt token for authentication purpose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published