Skip to content

Simple FastAPI application for testing CohesionIntegration Python module

Notifications You must be signed in to change notification settings

regione-marche/Cohesion2PythonIntegrationTest

Repository files navigation

CohesionIntegration - Python package

Test CohesionIntegration package app

How to use

Step 1

Use the package manager pip to install requirements

pip install -r requirements.txt

Step 2

Update Configuration file config.json with your settings

{
    "sso.check.url": "https://cohesion2.regione.marche.it/SPManager/WAYF.aspx",
    "sso.webCheckSessionSSO": "https://cohesion2.regione.marche.it/SPManager/webCheckSessionSSO.aspx",
    "sso.additionalData": "http://127.0.0.1:8000/logout",
    "site.URLLogin": "http://127.0.0.1:8000/callback",
    "site.URLLogout": "http://127.0.0.1:8000/logout",
    "site.IndexURL": "http://127.0.0.1:8000/",
    "site.ID_SITO": "TEST",
    "debug": true
}

Step 3

Just run it as a standard fastAPI project

python -m uvicorn main:app --reload

and go to /login page to initiate the authentication flow

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Simple FastAPI application for testing CohesionIntegration Python module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages