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

[SUPPORTENG-482] Doc update: Update OAuth2 snippet to note key limitations #589

Merged

Conversation

robertscl
Copy link
Contributor

Here, I've updated the OAuth2 snippet to note that client_id and client_secret can't be used as keys for form input fields.

In testing, documented in the Slack threads linked in the accompanying Jira ticket, it appears client_id in particular conflicts with the similarly named environment variable, causing issues in the token request. This can be avoided by refraining from using these key names in input form fields in the OAuth2 config.

Note:

  • I see package-lock.json got changed here. To be transparent, I don't know if that's expected. Please let me know if I need to fix that and resubmit.

// in `bundle.authData` for future use. Note, `client_id` and `client_secret`
// are reserved and cannot be used as keys for input form fields.
// If you need to save/use something that the user shouldn't need to type/choose,
// add a "computed" field, like:
Copy link
Member

@eliangcs eliangcs Nov 14, 2022

Choose a reason for hiding this comment

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

Can you move this change to README-source.md and let the pre-commit hook auto generate README.md for us? Thanks!

"integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

package-lock.json should not be in this change. We should undo the change here.

…client_id or client_secret as keys"

This reverts commit c7c5c50.
… to note that client_id and client_secret cannot be used as form field keys in OAuth 2
@robertscl
Copy link
Contributor Author

@eliangcs, thank you for the suggestions! I believe I've made the necessary changes, but please let me know if anything is still incorrect.

Copy link
Member

@eliangcs eliangcs left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@eliangcs eliangcs merged commit b9d3c8e into zapier:master Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants