Skip to content

Issue #3416848: Rework SoundCloud Authorization Form

Richard Allen requested to merge issue/musica-3416848:3416848 into 1.1.x

Description:

  • Auth Form now extends Consent Form for significantly less code.
  • Added automatic redirection between legacy OAuth redirect URL and current one.
  • Added status messages for the user for form actions and redirects.
  • Authorization state is accurately displayed in Auth Form, with Form action buttons enabled/disabled depending on authorization state.
  • Authorization state is being handled by the State API, SoundCloud API access tokens are handled by the SoundCloud Service Cache API implementation, which includes token expiration logic.

Updated Consent Form:

image

New Authorize Form:

image

Authorize Form dynamic CTAs:

image

Revoking the authorization will cause the access and refresh tokens to be immediately and irrevocably purged from the Cache API store. At that time the user is presented with a status message indicating the application's authorization has been revoked.

I didn't manage to add styling to the CTAs (green/red/etc). The token display elements are "a bit rough" for my liking, but I gotta keep it movin' otherwise I'll never finish this app. Iterative...progressive...change.

Edited by Richard Allen

Merge request reports

Loading