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

Update docs for returnTo and client_id params on logout #484

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

stevehobbsdev
Copy link
Contributor

Description

This PR updates the docs for the returnTo and client_id params on logout, to make it more clear what happens when certain params are omitted.

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not master

@stevehobbsdev stevehobbsdev added CH: Fixed PR is fixing a bug documentation This adds, fixes or improves documentation labels May 27, 2020
@stevehobbsdev stevehobbsdev added this to the vNext milestone May 27, 2020
@stevehobbsdev stevehobbsdev requested a review from a team May 27, 2020 19:53
lbalmaceda
lbalmaceda previously approved these changes May 29, 2020
Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I left a suggestion on the returnTo server behavior explanation.

For the next time, please use separate commits as it was difficult finding the actual changes introduced in this PR among all the generated docs.

src/global.ts Outdated
* `returnTo` URL that is provided must be listed in the
* Application's "Allowed Logout URLs" in the Auth0 dashboard.
* However, if the `client_id` parameter is not included, the
* `returnTo` URL must be listed in the "Allowed Logout URLs" at
* the account level in the Auth0 dashboard.
*
* If the `returnTo` URL is **not** set and `client_id` is **not** `null`, the server returns the user to the first Allowed Logout URLs set in the Dashboard.
Copy link
Contributor

@lbalmaceda lbalmaceda May 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documenting the behavior of sending/not sending client_id is OK. But how this line is worded, returnTo feels like a required parameter (because of the drawbacks you explain) and I see below that it's not. The more we explain a property the more we risk not keeping these docs up to date with the official docs. Also, I could think, why would I care reading these docs if I'm not setting this property at all? I think we should word it assuming this returnTo value is present by now. This may be translated to, this line "both not null - scenario" line not necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good shout - I've removed that line and just linked off to further info.

@stevehobbsdev
Copy link
Contributor Author

@lbalmaceda Thanks - committing the docs was a mistake, I've removed them from the diff.

Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@stevehobbsdev stevehobbsdev merged commit 29c1b67 into master Jun 2, 2020
@lbalmaceda lbalmaceda deleted the update/docs branch June 2, 2020 18:43
@stevehobbsdev stevehobbsdev added review:tiny Tiny review and removed tiny labels Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Fixed PR is fixing a bug documentation This adds, fixes or improves documentation review:tiny Tiny review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants