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

Fix issue where an empty required field would throw load Exception #170

Merged
merged 2 commits into from
Oct 30, 2019

Conversation

danielbachhuber
Copy link
Contributor

@danielbachhuber danielbachhuber commented Oct 30, 2019

If a field like sp_entityId were left empty, which the settings form
allows, then WP SAML Auth would throw an Exception when loading:

Fatal error: Uncaught OneLogin\Saml2\Error: Invalid array settings: idp_entityId_not_found, idp_sso_not_found

The plugin now only applies the settings when all of the required fields are present, and displays a warning message when some required fields are missing:

image

From https://wordpress.org/support/topic/cant-get-in-to-wordpress/

If a field like `sp_entityId` were left empty, which the settings form
allows, then WP SAML Auth would throw an Exception when loading:

```
Fatal error: Uncaught OneLogin\Saml2\Error: Invalid array settings: idp_entityId_not_found, idp_sso_not_found
```
@danielbachhuber danielbachhuber added this to the 0.7.2 milestone Oct 30, 2019
@danielbachhuber danielbachhuber merged commit d9067e7 into master Oct 30, 2019
@danielbachhuber danielbachhuber deleted the fix-required-field-error branch October 30, 2019 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant