Skip to main content

SAML2 SPID Service Provider validation tool that can be run from the command line

Project description

spid-sp-test

spid-test-env is a SAML2 SPID Service Provider validation tool that can be run from the command line.

Setup

apt install libxml2-dev libxmlsec1-dev libxmlsec1-openssl
pip install xmlsec

Examples

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 more complex test

spid_sp_test -metadata_url http://localhost:8000/spid/metadata --authn-url http://localhost:8000/spid/login/?idp=http://localhost:8088 --extra -debug DEBUG

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)

python3 src/spid_sp_test/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

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.3.tar.gz (48.6 kB view details)

Uploaded Source

File details

Details for the file spid_sp_test-0.2.3.tar.gz.

File metadata

  • Download URL: spid_sp_test-0.2.3.tar.gz
  • Upload date:
  • Size: 48.6 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

Hashes for spid_sp_test-0.2.3.tar.gz
Algorithm Hash digest
SHA256 d173723b87f8fc783b6cf43864e8c078c73fa1fd974f6b67469dc2bf40d37e0b
MD5 c355aef1dc2f5d0fe0d8a9ec6975f3d7
BLAKE2b-256 d2f5ff5f82fa659434f5b397359cd46d7ed8ed34156b44dd276454e2cabc8a61

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page