Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Latest commit

 

History

22 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

Practical API 安全 Example

This repository consists of client and server code comprising the example material for Practical API 安全.

Installing

Pre-Installation Requirements

Clone This 仓库

Clone this repository to your computer

git clone https://github.com/aenglander/practical-api-security-python-example-flask.git

Installing Requirements and Virtual Environment

Run a pipenv install:

pipenv install

Start Virtual Environment

Start a pipenv shell:

pipenv shell

Verifying the installation

  1. Start the server

    From Bash:

    export FLASK_APP=server.py
    export FLASK_ENV=development
    flask run

    From Windows:

    set FLASK_APP=server.py
    set FLASK_ENV=development
    flask run
    
  2. Run the client:

    python client.py
  3. The client response should be:

    REQUEST:
    
    === No Request ===
    
    RESPONSE:
    
    Decrypted Body:
    {
      "Hello": "World!"
    }
    

关于

Code example for Practical API 安全 for Python based presentations and trainings

Resources

Stars

8 stars

关注者

1 watching

复刻s

发布

Used by

贡献者

Languages