Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#51581 closed defect (bug) (fixed)

App Passwords: Fix success=false not being appended to fallback reject url

Reported by: TimothyBlynJacobs Owned by: TimothyBlynJacobs
Priority: normal Milestone: 5.6
Component: Login and Registration Version: 5.6
Severity: normal Keywords: has-patch
Cc: Focuses: rest-api

Description

On the Authorize Application screen with a success_url of https://example.org, we display https://example.org?success=false as the rejection URL. However, the user is redirected to https://example.org, without success=false

Change History (7)

This ticket was mentioned in ​PR #637 on ​WordPress/wordpress-develop by ​TimothyBJacobs.


6 years ago
#1

  • Keywords has-patch added

​TimothyBJacobs commented on ​PR #637:


6 years ago
#2

@georgestephanis if you could review that'd be great!

#3 @georgestephanis
6 years ago

Added some thoughts about a logic path that this change messes with -- if both the success url and reject urls are omitted, this enters an odd fail state.

#4 @georgestephanis
6 years ago

With the latest changes it looks right to me. Do we have any integration testing or the like for core we could build against for this? It seems like it may be tricky to mock for unit testing.

#5 @TimothyBlynJacobs
6 years ago

There is a project to add end-to-end tests in Core, but I don't think we've formally started yet. There is a more recent update than this, ​https://make.wordpress.org/core/2019/06/27/introducing-the-wordpress-e2e-tests/, but I can't find it atm. ​https://github.com/WordPress/wordpress-develop/tree/master/tests/e2e/specs

This ticket was mentioned in ​Slack in #core-passwords by georgestephanis. ​View the logs.


6 years ago

#7 @TimothyBlynJacobs
6 years ago

  • Resolution → fixed
  • Status assigned → closed

In 49272:

App Passwords: Fix success=false not being appended to fallback reject url.

Props TimothyBlynJacobs, georgestephanis.
Fixes #51581.

Note: See TracTickets for help on using tickets.