Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: auth0/wordpress
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.2.1
Choose a base ref
...
head repository: auth0/wordpress
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.x
Choose a head ref
  • 6 commits
  • 4 files changed
  • 6 contributors

Commits on Jun 4, 2024

  1. Update .version

    evansims committed Jun 4, 2024
    Copy the full SHA
    143030a View commit details

Commits on Jun 24, 2024

  1. CR: Register and trigger custom wp_action upon token failure (#907)

    Co-authored-by: Ramon <ramon@xel.nl>
    ramonschriks and Ramon authored Jun 24, 2024
    Copy the full SHA
    78a1f3e View commit details

Commits on Jul 25, 2024

  1. Copy the full SHA
    4e8ebc6 View commit details

Commits on Jul 30, 2024

  1. Copy the full SHA
    cc7e58f View commit details

Commits on Sep 3, 2024

  1. Copy the full SHA
    3e09ef1 View commit details
  2. Copy the full SHA
    169e917 View commit details
Showing with 13 additions and 14 deletions.
  1. +1 −1 .github/CODEOWNERS
  2. +1 −10 .github/workflows/semgrep.yml
  3. +1 −1 .version
  4. +10 −2 src/Actions/Authentication.php
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @auth0/dx-sdks-engineer
* @auth0/project-dx-sdks-engineer-codeowner
11 changes: 1 addition & 10 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ name: Semgrep

on:
merge_group:
pull_request_target:
pull_request:
types:
- opened
- synchronize
@@ -20,16 +20,7 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/5.x' }}

jobs:
authorize:
name: Authorize
environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true

check:
needs: authorize

name: Check for Vulnerabilities
runs-on: ubuntu-latest

2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.2.0
5.2.1
12 changes: 10 additions & 2 deletions src/Actions/Authentication.php
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ final class Authentication extends Base

'login_form_logout' => 'onLogout',
'auth0_logout' => 'onLogout',
'auth0_token_exchange_failed' => 'onExchangeFailed',

'before_signup_header' => 'onRegistration',

@@ -495,8 +496,8 @@ public function onLogin(): void
} catch (Throwable) {
}

wp_redirect('/');
exit;
do_action('auth0_token_exchange_failed', $throwable);
return;
}

$session = $this->getSdk()
@@ -549,6 +550,13 @@ public function onLogin(): void
exit;
}

public function onExchangeFailed(Throwable $_)
{
// Custom hook ('auth0_token_exchange_failed') to register when token exchange fails.
wp_redirect('/');
exit;
}

public function onLogout(): never
{
wp_logout();