admin管理员组文章数量:1208155
I have a use-case where I have a WordPress site and an ASP .NET Core as a Restful API backend. I use the WordPress site entire for Frontend, CMS, and User Authentication.
On certain pages of my WordPress site, I've embedded React apps into it. The React app does some API calling to my ASP .NET Core server.
Now, I would like to know what is the best way to verify which signed-in WordPress user requested the API in ASP .NET Core. Imagine that my user has signed in into my WordPress site and he accesses the React App and calls an API to my ASP.NET Core server.
What can I send in the API call header to let my ASP.NET Core server verify that this is the user that has made a request and the user is currently signed-in in the WordPress site? Is there any token system WordPress has?
Thank you.
本文标签: rest apiHow to verify which WordPress user requested the API in ASP NET Core
版权声明:本文标题:rest api - How to verify which WordPress user requested the API in ASP .NET Core? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738738599a2109714.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论