Hey all, I need to use my own custom auth instead of Magento's default authentication, can anyone tell me if this scenario is supported?
Hello @alex_choroshin
yes possible but you need to customize for that same like magento doing for customer token.
Otherwise do like this pass as one key as fix and compare with that.
Hope it will help you.
Yes, we can create a custom authentication by using API. Here is the scenario might work for you. You can create custom ACL(acl.xml) and put some rules there in the file. Also in case you need to use API create a webapi.xml file.
You can add below code in web.xml:
<route url="/V1/mymethod/show/:num1/:num2" method="GET"> <service class="MyNamespace\CoreApi\Api\CoreApiInterface" method="show"/> <resources> <resource ref="[module name]::[acl rule id]"/> </resources> </route>
Replace MyNamespace, mymethod, module name and acl rule id in the above code.
I hope it will help you.
Thanks
--
If my answer is useful, please Accept as Solution & give Kudos
Thanks