Merge pull request #20089 from woocommerce/fix/20042
Allow oAuth1.0a under SSL
This commit is contained in:
commit
79c34ba843
|
@ -78,7 +78,11 @@ class WC_REST_Authentication {
|
|||
}
|
||||
|
||||
if ( is_ssl() ) {
|
||||
return $this->perform_basic_authentication();
|
||||
$user_id = $this->perform_basic_authentication();
|
||||
}
|
||||
|
||||
if ( $user_id ) {
|
||||
return $user_id;
|
||||
}
|
||||
|
||||
return $this->perform_oauth_authentication();
|
||||
|
|
Loading…
Reference in New Issue