Skip to content

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

Merged
danielbachhuber merged 2 commits into
masterfrom
fix-required-field-error
Oct 30, 2019
Merged

Fix issue where an empty required field would throw load Exception#170
danielbachhuber merged 2 commits into
masterfrom
fix-required-field-error

Conversation

@danielbachhuber

@danielbachhuber danielbachhuber commented Oct 30, 2019

Copy link
Copy Markdown
Contributor

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