Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 1.24 KB

Readme.md

File metadata and controls

47 lines (40 loc) · 1.24 KB

Dockerized version of PySAML2 (pysaml2_docker)

biligunb

pysaml2_docker is a dockerized version of PySAML2 library.

  • Ubuntu:18.04
  • Customized to expose Docker to host

Help

Docker build
  • from main directory run
    $ docker build -t bubuntu .
Docker run
  • from main directory run
    $ docker run -it -p 8088:8088 -p 5000:5000 --rm bubuntu
    • 5000 for SP (Flask example)
    • 8088 for IdP (PySAML2.0 example)
Start services SP & IdP
  • Flask example (Start SP)

    $ cd example/sp
    $ ./python app.py
    
  • In different bash (Start IdP)

    • docker ps
    • docker exec -it <DOCKER_CONTAINER_ID> /bin/bash
    $ cd example/idp2
    $ ./idp.py idp_conf &
    
Check in browser