-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Added token revocation for REST API #32481
Added token revocation for REST API #32481
Conversation
Hi @ProkopovVitaliy. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
@magento run Functional Tests B2B |
1 similar comment
@magento run Functional Tests B2B |
@magento run all tests |
@magento run Integration Tests |
@magento run Functional Tests B2B |
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.
Hi @ProkopovVitaliy please find below couple minor suggestions.
Thank you.
...s/api-functional/testsuite/Magento/Customer/Api/AccountManagementRevokeCustomerTokenTest.php
Outdated
Show resolved
Hide resolved
...s/api-functional/testsuite/Magento/Customer/Api/AccountManagementRevokeCustomerTokenTest.php
Outdated
Show resolved
Hide resolved
...s/api-functional/testsuite/Magento/Customer/Api/AccountManagementRevokeCustomerTokenTest.php
Outdated
Show resolved
Hide resolved
...s/api-functional/testsuite/Magento/Customer/Api/AccountManagementRevokeCustomerTokenTest.php
Outdated
Show resolved
Hide resolved
@magento run all tests |
@magento run Functional Tests CE |
@magento run WebAPI Tests |
@magento run Functional Tests B2B |
@magento run WebAPI Tests, Functional Tests B2B |
1 similar comment
@magento run WebAPI Tests, Functional Tests B2B |
@magento run WebAPI Tests, Functional Tests B2B |
@eduard13 Code review recommendations implemented, tests passed. |
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.
Thank you for this cool feature 👍.
Hi @eduard13, thank you for the review. |
Hi @sidolov, it seems that we are fine here, all the builds are green as well for 2.4-develop. |
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.
Approved ✔
Note: this PR was already tested in #32481 (comment), but should be re-tested again
Hi @ihor-sviziev, thank you for the review. |
✔️ QA Passed Preconditions:
Manual testing scenario:
Before: ✖️ There was no revoke-customer-token API request at all After: ✔️ revoke-customer-token introduced working absolutely fine After the revoke-customer-token re-tried to access the /V1/carts/mine request and identified that the revoked token is no more valid! This PR is relevant to API request and has no impact functionally. There is an auto-test covered in the PR and no hence additional regression is required |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Integration Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Description (*)
Created new token revocation endpoint for REST API:
/V1/integration/customer/revoke-customer-token
.Feature have similar functionality like here https://devdocs.magento.com/guides/v2.3/graphql/mutations/revoke-customer-token.html.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
/V1/integration/customer/revoke-customer-token
endpointQuestions or comments
Contribution checklist (*)