Skip to content

Commit b7cd324

Browse files
authored
Merge pull request #334 from auth0/remove_client_validation
Remove client_id/secret validation since it is not allowed anymore
2 parents c5b4c4a + e552f02 commit b7cd324

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

lib/admin/WP_Auth0_Admin_Basic.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,7 @@ public function basic_validation( $old_options, $input ) {
195195
$this->add_validation_error( $error );
196196
$completeBasicData = false;
197197
}
198-
199-
if ( $completeBasicData ) {
200-
$response = WP_Auth0_Api_Client::get_token( $input['domain'], $input['client_id'], $input['client_secret'] );
201-
202-
if ( $response instanceof WP_Error ) {
203-
$error = $response->get_error_message();
204-
$this->add_validation_error( $error );
205-
} elseif ( 200 !== (int) $response['response']['code'] ) {
206-
$error = __( 'The client id or secret is not valid.', WPA0_LANG );
207-
$this->add_validation_error( $error );
208-
}
209-
}
198+
210199
return $input;
211200
}
212201

0 commit comments

Comments
 (0)