Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#2141 - Tighten up new page civicrm/oauth-client/return #18955

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

totten
Copy link
Member

@totten totten commented Nov 10, 2020

Overview

The route civicrm/oauth-client/return is added in 5.32 as the main "Redirect URL".

In normal usage, the page shouldn't be visible to a user (because the developer should define some alternative UI) -- but one might see it (a) during development, (b) if there's an error, or (c) if a clever user mucks about.

Improvements:

  • Error handling
    • Present error messages more nicely
    • Record errors in the log
    • Report more info via hook_oauthReturnError
  • Other UI
    • Redact token details (dependent upon permission manage OAuth client secrets)
    • Set a more sensibile page title
    • Make output blobs conditional and collapsible

@civibot
Copy link

civibot bot commented Nov 10, 2020

(Standard links)

@civibot civibot bot added the 5.32 label Nov 10, 2020
Overview
--------

The route `civicrm/oauth-client/return` is added in 5.32 as the main "Redirect URL".

In normal usage, the page shouldn't be visible to a user (because the
developer should define some alternative UI) -- but one might see it (a)
during development, (b) if there's an error, or (c) if a clever user mucks
about.

Improvements:

* Error handling
    * Present error messages more nicely
    * Record errors in the log
    * Report more info via hook_oauthReturnError
* Other UI
    * Redact token details (dependent upon permission `manage OAuth client secrets`)
    * Set a more sensibile page title
    * Make output blobs conditional and collapsible
@seamuslee001
Copy link
Contributor

Changes look fine to me merging

@seamuslee001 seamuslee001 merged commit a8e8613 into civicrm:5.32 Nov 11, 2020
@totten totten deleted the 5.32-oauth-return branch November 11, 2020 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants