-
Notifications
You must be signed in to change notification settings - Fork 32
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
Validate API credentials using the Parse.ly API validation endpoint #1897
Conversation
Adding a "Do Not Merge" label as there is a problem with the e2e tests that need to be addressed. Looking into it. |
Removing the The issue was with testing with API credentials that aren't valid, since those are checked against the validate endpoint. I added a GET parameter called |
Hey there! Thank you for your work! I haven't looked into the code just yet, but using the UI I noticed that it seems the settings page won't allow saving an empty Site ID or API Secret, which should be possible (especially for the API Secret since not all customers may have API access). You can easily see this if you've got a filled API Secret and then try to empty it. I'd suggest looking how |
…into add/api-credentials-validation
@acicovic ah nice catch. I had it working like that previously but I think I accidentally reverted it when I amended a commit. Pushed the changes that should allow empty Site ID and Secret :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work! The effort that you've made to stick to project conventions is apparent and greatly appreciated!
Left some questions and a couple of minor adjustment proposals. This review is extremely super picky by the way and mostly focuses on details that are trivial.
Thank you so much!
@vaurdan, I had a second look. Thanks for addressing the feedback and replying. If you agree to wipe out the non-API validations, please go ahead and I can take a final look. Thanks! 🙂 |
@acicovic the older methods have been removed in favor of the new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Left some comments and questions, mostly details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this and bearing with me 🙂
Description
Validate the API credentials by doing a API request to the validation endpoint. This assures that only valid credentials can be saved on the Settings page.
Motivation and context
Fixes #1853
How has this been tested?
Tested on my local environment and with three new integration tests.
Screenshots (if appropriate)