litesaml / lightsaml

MIT License
82 stars 23 forks source link

metadata XsdValidator doesn't work unless litesaml/schemas is installed under litesaml/lightsaml project #63

Open frob opened 10 months ago

frob commented 10 months ago

Currently the XsdValidator has a hard coded path to lightsaml/schemas

https://github.com/litesaml/lightsaml/blob/b6aa6f41c3a051a52e39ddc3a7b753a8601bee69/src/Validator/Model/Xsd/XsdValidator.php#L46

        $schemaFile = __DIR__ . '/../../../../vendor/litesaml/schemas/resources/' . $schema;

The schemas project is only installed as a dev-dependency and, unless the project gets vendored in lightsaml, it's location/existence isn't guarantee.

This was introduced in #2

ankithashetty-specbee commented 9 months ago