Skip to main content

Appendix A - SSO Test App

Clone the repo into a location capable of serving a python flask application.

git clone https://git.landisfam.org/landisfam/ssotest

Create a virtual environment and install the requirements.

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Create a .env file with information for your instance.

FLASK_SECRET = "your_secret_key"                          # Just make something up, this is only for test
KEYCLOAK_URL = "https://kc.example.com"                   # Update to your Keycloak site
CLIENT_ID = "test-app"
CLIENT_SECRET = "from_keycloak"                           # Copy / paste from your Keycloak client
REDIRECT_URI = "https://test-app.example.com/callback"    # Update to the page where you're hosting