Ove*_*ine 5 security rest magento2
我在 Magento2 中创建了一个自定义的 REST api。但是,如何使用内置的 Magento2 REST api 安全性来保护它?
就像 /index.php/rest/V1/customers/me 用 Authorization 标头保护
在webapi.xml中创建自定义 api 配置时ref="self"
如果你这样配置,你可以使用仅由magento 2提供的身份验证访问API,例如oauth,token,oauth2
在 magento 的管理面板中禁用 api 对匿名的访问
| 归档时间: |
|
| 查看次数: |
2361 次 |
| 最近记录: |