Page MenuHomePhabricator

Create an OOUI dialog subclass for the OAuth authorization dialog
Closed, ResolvedPublic

Description

Current look of the OAuth dialog with JS:

oauth-old.png (813×1 px, 71 KB)

Without JS:
oauth-ooui-nojs.png (458×775 px, 44 KB)

The JS version creates a jQuery UI dialog and puts the form inside it. jQuery UI is deprecated and should be replaced with OOUI.

The existing OOUI dialogs look similar so we need a new dialog class. It could be something generic that puts a HTMLForm into a dialog, or something specific for OAuth (the eventual design is supposed to be more complex - see T75062 - so maybe that needs custom logic).

Event Timeline

Tgr raised the priority of this task from to Needs Triage.
Tgr updated the task description. (Show Details)
Tgr subscribed.

@Tgr When does this dialog popup? How's the process (in the sense what happened before, where have I clicked to see it)?

This is the standard authorization dialog shown when an application requests credentials from the Wikimedia server for accessing a certain user account. You can test it with the Hello World app ("Authorize this application" link at the bottom)

matmarex subscribed.

The dialog uses OOUI since T102973.