SAML2 SPID Service Provider validation tool that can be run from the command line
Project description
spid-sp-test
spid-sp-test is a SAML2 SPID Service Provider validation tool that can be run from the command line. This tool was born by separating the test library already present in spid-saml-check.
Features
spid-sp-test is:
- extremely faster in execution time than spid-saml-check
- extremely easy to setup
- able to test a SAML2 SPID Metadata file
- able to test a SAML2 SPID AuthnRequest
- integrable in CI
- able to export a detailed report in json format, in stdout or in a file.
Roadmap
- Next releases: a hundred of SAML2 SPID fake Responses ... For security assessment!
Setup
apt install libxml2-dev libxmlsec1-dev libxmlsec1-openssl
pip install spid-sp-test --upgrade --no-cache
Examples
Run spid_sp_test -h
for inline documentation.
Test metadata passing a file
spid_sp_test -metadata_url file://metadata.xml
Test metadata from a URL
spid_sp_test -metadata_url http://localhost:8000/spid/metadata
Get fake IdP metadata and copy it to your SP metadatastore folder
spid_sp_test --idp-metadata > /path/to/spid-django/example/spid_config/metadata/spid-sp-test.xml
A quite standard test
spid_sp_test -metadata_url http://localhost:8000/spid/metadata --authn-url http://localhost:8000/spid/login/?idp=http://localhost:8088 --extra
Print only ERRORs
spid_sp_test -metadata_url http://localhost:8000/spid/metadata --authn-url http://localhost:8000/spid/login/?idp=http://localhost:8080 --extra -debug ERROR
JSON report (add -o filename.json
to write to a file)
spid_sp_test -metadata_url http://localhost:8000/spid/metadata --authn-url http://localhost:8000/spid/login/?idp=http://localhost:8080 --extra -debug CRITICAL -json
Authors
- Giuseppe De Marco
- Paolo Smiraglia
- Michele D'Amico
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spid_sp_test-0.2.6.tar.gz
(49.2 kB
view details)
File details
Details for the file spid_sp_test-0.2.6.tar.gz
.
File metadata
- Download URL: spid_sp_test-0.2.6.tar.gz
- Upload date:
- Size: 49.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4b2c4f0cbc688e1f0437920d27f230501ac4ab551c7c4596fc753a59f29d5a7 |
|
MD5 | 769e972592fa4fc7191e67822c8dc0c7 |
|
BLAKE2b-256 | 7c3208a7de6a26123df18929e3735904440aef1fd7ad790a47706d8d57242f7f |