{"data":{"id":"MDVA-43178","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where a customer token for a custom store cannot be retrieved in GraphQL.","categories":["Web API"],"components":["magento/module-login-as-customer-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-14/mdva-43178-customer-token-for-custom-store-cannot-be-retrieved","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-14/mdva-43178-customer-token-for-custom-store-cannot-be-retrieved.md","blobSha":"6b64a5f82992f064689879a0ed73b9447f13ab1f","description":"Customer token for a custom store cannot be retrieved in GraphQL.","stepsToReproduce":"1. Create two Store Views for the default store. 1. Create a new Website, one Store, and one Store View. Name this Store View 'test3'. 1. Create a customer for the new website. 1. Generate API admin token: http://domain/rest/all/V1/integration/admin/token <pre> <code class=\"language-graphql\"> { \"username\": \"login\", \"password\": \"password\" } </code> </pre> 1. Send GraphQL to retrieve customer token as an admin, use the admin token for authorization, with \"store\" = \"test3\" in the header: <pre> <code class=\"language-graphql\"> mutation{ generateCustomerTokenAsAdmin(input: { customer_email: \"<customer_email>\" }){ customer_token } } </code> </pre>","introducedInQpt":"1.1.14","createdFor":["2.4.1"],"documentedRange":"2.4.3-p1 - 2.4.4","scheduledFixRelease":"2.4.5"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.3-p2 <2.4.5","path":"patches/os/MDVA-43178_2.4.1.patch","blobSha":"be3db9ae25daeff9fd1c1bb06d9d33c285fb1a89","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-43178_2.4.1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-login-as-customer-graph-ql/Model/LoginAsCustomer/CreateCustomerToken.php","change":"modified","package":"magento/module-login-as-customer-graph-ql"}],"packages":["magento/module-login-as-customer-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2"],"magento-commerce":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2"],"magento-commerce":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch MDVA-43178 details"}