python >= 3
No third party packages required.
The project is organized below:
- Sources are stored in auth_serv
- base.py implemented an abstract class
- user.py implemented the User class, inherited from base.py
- service.py implemented the main authenticate and authorize APIs
- Unittest are stored in tests
- test_user.py tested basic methods of the User class
- test_auth.py tested different scenarios of authentication
- Icons are stored in resources
Change to project directory:
cd /home/user/auth_serv
Run all tests:
python test.py