For SOME SCHOOL's SSO validation code recognition.
Before use, you have to host the service first.
Here provide local and docker way to host it.
$ pip3 install -r requirements-model.txt
$ python3 app.py
build image:
$ docker build -t sso-validate-flask-server:latest .
run image:
$ docker run -ti -d -p 127.0.0.1:5000:5000 --restart always sso-validate-flask-server:latest
Start container:
$ docker-compose up -d
Stop container:
$ docker-compose down
View logs:
$ docker-compose logs -f
In run.py have some example usage to interact with service.
$ pip3 install -r requirements-run.txt
$ python3 run.py