Giter VIP home page Giter VIP logo

localauthsimulator's Introduction

LocalAuthSimulator

Explore the world of HTTP communication, authentication, and resource access through this Python-based simulation project. Simulate the interaction between a client, an Authorization Server, and a Resource API, gaining hands-on insights into the process of securing and retrieving data.

HTTP Simulation Project

This is a Python project that simulates HTTP communication between a client, an Authorization Server, and a Resource API.

How to Set Up the Project

Follow these steps to set up and execute the project:

  1. Clone the GitHub Repository:

    Clone the project repository from GitHub.

  2. Ensure You Have Python Interpreter or venv:

    Make sure you have a Python interpreter installed, or create a virtual environment (venv) with Python.

  3. Install Required Packages:

    Install the required packages by running the following command:

pip install -r requirements.txt

How to Execute the Project

To execute the project, activate all three components one by one:

  1. Open Three Terminals:

Open three separate terminal windows.

Terminal 1: Run the Authorization Server:

python authorization_server.py

Terminal 2: Run the Resource API:

python resource_api.py

Terminal 3: Run the Client Simulation:

python main.py

The output should resemble the following:

Final Result

  1. Execute Unit Test Cases:

After successful execution of the scripts, you can run the unit test cases using the following command:

python -m unittest test_server_interactions.py

In case you encounter errors related to ports already in use while executing scripts, you can kill the processes running on the ports

localauthsimulator's People

Contributors

diyaw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.