-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add new options for WordPress Login Enabled #642
Conversation
51d7a90
to
5cd6418
Compare
@@ -682,9 +676,6 @@ public static function get_authorize_params( $connection = null, $redirect_to = | |||
$params['connection'] = $connection; | |||
} | |||
|
|||
// Get the telemetry header. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused from previous PR.
5cd6418
to
269f818
Compare
|
||
if ( isset( $_GET['wle'] ) ) { | ||
if ( $this->options->can_show_wp_login_form() ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relevant change here.
@@ -310,10 +369,6 @@ public function basic_validation( $old_options, $input ) { | |||
$input['client_id'] = sanitize_text_field( $input['client_id'] ); | |||
$input['cache_expiration'] = absint( $input['cache_expiration'] ); | |||
|
|||
$input['wordpress_login_enabled'] = ( isset( $input['wordpress_login_enabled'] ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to wle_validation
@@ -373,6 +373,7 @@ public function basic_validation( $old_options, $input ) { | |||
// Turn SLO off if SSO is off. | |||
$input['singlelogout'] = empty( $input['singlelogout'] ) || empty( $input['sso'] ) ? 0 : 1; | |||
|
|||
$input['auto_login'] = empty( $input['auto_login'] ) ? 0 : 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing settings validation causing ULP setting to malfunction
@@ -118,12 +118,6 @@ public function login_auto() { | |||
return false; | |||
} | |||
|
|||
// Do not redirect Auth0 login processing. | |||
// TODO: This should be removed as this page is no longer used for callbacks. | |||
if ( null !== $this->query_vars( 'auth0' ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Callback is not actually processed on this page so this just closes a hole.
Reason for removed tests in tests/testLoginManager.php
.
/** | ||
* Test that the ULP redirect does not happen if wp-login.php is used as a callback. | ||
*/ | ||
public function testThatUlpRedirectIsSkippedForCallback() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explained above.
269f818
to
b0f1e39
Compare
I'm finding this UI a little confusing. Might it be better to put the descriptions next to the various checkboxes so you can see all the details at a glance? wle enabled, wle present etc. is hard to understand at a glance. |
@damieng - I think you're right. I'll take another pass at this, thank you. |
e52ec19
to
a0b01a8
Compare
a0b01a8
to
f86bdde
Compare
Codecov Report
@@ Coverage Diff @@
## master #642 +/- ##
============================================
+ Coverage 40.71% 41.85% +1.13%
- Complexity 1231 1244 +13
============================================
Files 51 51
Lines 3753 3799 +46
============================================
+ Hits 1528 1590 +62
+ Misses 2225 2209 -16
Continue to review full report at Codecov.
|
f86bdde
to
46d00a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's groundhog day... again.
Changes
UI change:
References
Testing
Checklist