GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aenglander/practical-api-security-python-example-flask: Code example for Practical API Security for Python based presentations and trainings

This repository was archived by the owner on Nov 13, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE.md
LICENSE.md
 
 
Pipfile
Pipfile
 
 
Pipfile.lock
Pipfile.lock
 
 
README.md
README.md
 
 
client.py
client.py
 
 
exceptions.py
exceptions.py
 
 
server.py
server.py
 
 
signals.py
signals.py
 
 

Repository files navigation

Practical API Security Example

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

Installing

Pre-Installation Requirements

  • Git
  • Python 3.6
  • pipenv

Clone This Repository

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!"
    }
    

About

Code example for Practical API Security for Python based presentations and trainings

Resources

Readme
MIT license
Activity

Stars

8 stars

Watchers

1 watching

Forks

10 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.