Skip to content

Commit c1e4407

Browse files
authored
Merge pull request #278 from auth0/fix-base64
Fix base64
2 parents 80f37ea + db9182d commit c1e4407

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

WP_Auth0.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: PLUGIN_NAME
44
* Description: PLUGIN_DESCRIPTION
5-
* Version: 3.2.15
5+
* Version: 3.2.16
66
* Author: Auth0
77
* Author URI: https://auth0.com
88
*/
@@ -11,7 +11,7 @@
1111
define( 'WPA0_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
1212
define( 'WPA0_LANG', 'wp-auth0' );
1313
define( 'AUTH0_DB_VERSION', 12 );
14-
define( 'WPA0_VERSION', '3.2.15' );
14+
define( 'WPA0_VERSION', '3.2.16' );
1515

1616
/**
1717
* Main plugin class

lib/WP_Auth0_Options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function get_default($key) {
4545

4646
public function get_client_secret_as_key() {
4747
$secret = $this->get('client_secret', '');
48-
$isEncoded = $this->get('client_secret_b64_encoded', false);
48+
$isEncoded = $this->get('client_secret_b64_encoded', false);
4949
return $isEncoded ? JWT::urlsafeB64Decode($secret) : $secret;
5050
}
5151

@@ -58,7 +58,7 @@ protected function defaults() {
5858
'auto_login_method' => '',
5959
'client_id' => '',
6060
'client_secret' => '',
61-
'client_secret_b64_enabled' => true,
61+
'client_secret_b64_encoded' => true,
6262
'domain' => '',
6363
'form_title' => '',
6464
'icon_url' => '',

lib/admin/WP_Auth0_Admin_Basic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function render_client_secret() {
7777
public function render_client_secret_b64_encoded() {
7878
$v = absint( $this->options->get( 'client_secret_b64_encoded' ) );
7979

80-
echo $this->render_a0_switch( "Not Base64 Enabled", "Base64 Enabled", 1, 1 == $v );
80+
echo $this->render_a0_switch( "wpa_client_secret_b64_encoded", "client_secret_b64_encoded", 1, 1 == $v );
8181
?>
8282
<div class="subelement">
8383
<span class="description"><?php echo __( 'Enable if your client secret is base64 enabled. If you are not sure, check your clients page in Auth0. Displayed below the client secret on that page is the text "The Client Secret is not base64 encoded.
@@ -165,7 +165,7 @@ public function render_basic_description() {
165165
}
166166

167167
public function basic_validation( $old_options, $input ) {
168-
168+
169169
// $input['registration_enabled'] = $old_options['registration_enabled'];
170170

171171
$input['client_id'] = sanitize_text_field( $input['client_id'] );

0 commit comments

Comments
 (0)