GithubHelp home page GithubHelp logo

falcosuessgott / saml2-metadata-verifier Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 96 KB

Verify and lint SAML2.0 Metadata

License: MIT License

Makefile 46.46% Shell 36.00% Dockerfile 17.54%
saml metadata saml2 libxml2

saml2-metadata-verifier's Introduction

saml2-metadata-verifier

verify SAML SP and IDP metadata

CI docker

Table of Contents

How it works

saml2-metadata-verifier parses the provided metadata-xml-file and validates it to the SAML2.0 xsd-files using xmllint. If the metadata file has values or options that are invalid for the SAML2.0 standard it prints out the errors.

Dependencies

You will need xmllint. You can install the dependency from sources, rpm or apt packages:

libxml2 from sources

curl -L ftp://xmlsoft.org/libxml2/LATEST_LIBXML2 -o ./LIBXML2_LATEST.tar.gz
tar -xf ./LIBXML2_LATEST.tar.gz
cd ./libxml2*
./configure --prefix=/usr  --enable-static --with-threads --with-history
make
sudo make install

CentOS/RHEL

yum install libxml2-devel

Debian/Ubuntu

apt-get install libxml2-utils

Installation

git clone https://github.com/FalcoSuessgott/saml2-metadata-verifier.git
make

Usage

saml2-metadata-verifier -h                             
Usage: saml2-metadata-verifier [OPTIONS...]

OPTIONS:
  -f, --file               path to metadata file
  -v, --verbose            verbos

Usage with Docker

docker run --rm -v ${PWD}/metadata.xml:/saml/metadata.xml gottziehtalles/saml2-metadata-verifier metadata.xml 
# change -v ${PWD}/metadata.xml to your metadata file

Example

./saml2-metadata-verifier.sh -f test/invalid_metadata.xml
-:77: element ContactPerson: Schemas validity error : Element '{urn:oasis:names:tc:SAML:2.0:metadata}ContactPerson', attribute 'contactType': [facet 'enumeration'] The value 'developer' is not an element of the set {'technical', 'support', 'administrative', 'billing', 'other'}.
- fails to validate

Credits

Shotouts to @joostd

https://gist.github.com/joostd/6057099

saml2-metadata-verifier's People

Contributors

falcosuessgott avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mcarbonneaux

saml2-metadata-verifier's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.