Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idpmetadata with trailing spaces creating false positives #301

Open
dustinbrisebois opened this issue Dec 13, 2018 · 2 comments
Open

idpmetadata with trailing spaces creating false positives #301

dustinbrisebois opened this issue Dec 13, 2018 · 2 comments
Labels

Comments

@dustinbrisebois
Copy link
Contributor

What happened?

If you have trailing spaces/extra lines in the idpmetadata field the plugin treats this as an extra (but empty) idp.

The dirty fix is adding:

On line 79 in auth.php
$this->idplist = $parser->parse(trim($this->config->idpmetadata));

Where the trim cleans up unnecessary bits before processing.

@dustinbrisebois
Copy link
Contributor Author

@danmarsden is this something we can push through to cleanup metadata cleanup?

@danmarsden
Copy link
Member

sure - feel free to file a pull request - there are some other plugins that trim data from those fields before using them. - Personally I'd prefer to do it on the settings page when saving the setting rather than when using the values though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants