WordPress's native redirect_to login parameter not followed after login
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 78/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Domaine
- authentication
Piste de recherche
Start with request parsing in WP_Auth0_LoginManager.php:71-73, then follow the state handling in WP_Auth0_Lock.php:34-37 and get_authorize_params() around lines 461-503. Compare the callback handling at WP_Auth0_LoginManager.php:237-238 and the v4 behavior; done means a valid WordPress redirect_to destination is preserved through Auth0 login and used after the callback, with readme.txt updated as noted.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Checklist
- I have looked into the Readme and the documentation, and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
redirect_to is a standard WordPress convention. wp_login_form(), wp_loginout(), and core's own wp-login.php all use it to send a user back to whatever page they were trying to reach before being prompted to authenticate. v4 of this plugin supported it as a first-class, documented feature but for whatever reason, this support is missing in v5.
Reproduction
- As a logged-out user (or with an expired session), visit any deep admin URL requiring login, e.g.
wp-admin/edit.php?post_type=page. - Complete login via Auth0.
- Observe you land on the dashboard/site root instead of back on the page list you were trying to reach.
Additional context
v4 implementation for reference: request parsing in WP_Auth0_LoginManager.php:71-73, threaded through state in WP_Auth0_Lock.php:34-37 and get_authorize_params() (~461-503), honored on callback at WP_Auth0_LoginManager.php:237-238, documented in readme.txt:64.
Suggested fix: capture $_REQUEST['redirect_to'], thread through the state param sent to Auth0, validate with wp_validate_redirect() on return, use as the final destination.
wp-auth0 version
5.6.1
WordPress version
7.1
PHP version
8.4
- Langage dominant
- PHP
- Étoiles
- 184
- Forks
- 105
- Merge moyen
- 1 j 5 h
- PR mergées (30 j)
- 6
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de auth0/wordpress
-
Scope: Documentation
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
auth0/wordpress#945 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 2 jours
-
Roadmap: Backlog
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
auth0/wordpress#943 · 3 commentaires ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
auth0/wordpress#934 · 4 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
auth0/wordpress#930 · 10 commentaires · 4 réactions ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de auth0/wordpress
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
MagnaCapax/PMSS#1142 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
-
Native-arrow select renders a second Jetpack chevronPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Automattic/static-site-importer#2294 ·
Les mainteneurs répondent en général sous 1 jour
-
bug 🐛
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
netalertx/NetAlertX#1856 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Bug Status: Needs Triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100