[英]Allow users from my ASP.Net MVC site to access my private WordPress site
I have an ASP .Net MVC site and I would like users who are logged in to my site to be able to access a separate WordPress site which I also own. 我有一个ASP .Net MVC网站,我希望登录到我的网站的用户能够访问我也拥有的单独的WordPress网站。 Otherwise, if a user is not logged into my ASP .Net site, the WordPress site should remain private.
否则,如果用户未登录我的ASP .Net网站,则WordPress网站应保持私有状态。
What is the easiest way to implement this? 实现此目的最简单的方法是什么? I thought about SSO but it seems like overkill for this simple scenario.
我考虑过SSO,但在这种简单情况下似乎有点过头了。 I don't need users identified on the WordPress site;
我不需要WordPress网站上标识的用户; they won't be allowed to post or anything, all they can do is just read my posts there.
他们将不会被允许发布任何信息,他们所能做的就是在那儿阅读我的信息。
I ended up making the whole WP site private except to logged in users by using a plugin (Ultimate Member). 我最终将整个WP网站设为私有,除了使用插件(最终会员)登录用户外。 Then I created a single login which would be used from the .Net site.
然后,我创建了一个将从.Net站点使用的登录名。 The way it works is:
它的工作方式是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.