tenet-ac-za / metadata-validator

Web-based metadata validator for SAML metadata
MIT License
0 stars 0 forks source link

Validation rules separate from web logic #1

Open madmatt opened 7 years ago

madmatt commented 7 years ago

Hi there,

I was wondering if it would be possible to separate the 'website' from the validation logic, so that I could use the validation logic in my own website?

I'd be happy to provide a pull request that translates this into a module that just does the validation and pushes it into composer, then a separate repository that provides your current 'web' interface that uses it.

This would also allow you to separate 'local' rules out more cleanly (into the new 'web' repository).

Please let me know if this might be suitable, thanks!

ghalse commented 7 years ago

Short answer is that I'd be more than happy to take contributions.

What's there at the moment was done quite quickly to solve an immediate need, and I intend to eventually come back to it and refine it somewhat. There are a bunch of things in my local checks that might have more generic applicability, etc.

If it's any help, most of the XSLT is really the UK Access Federation's work, at https://github.com/ukf/ukf-meta/tree/master/mdx/_rules . Similarly, some of the logic is really WAYF's work at https://github.com/wayf-dk/phph