简体   繁体   English

使用Joomla 2.5,有没有一种方法可以从前端链接到后端组件而无需登录?

[英]Using Joomla 2.5, is there a way to link from the frontend to a backend component without login?

The title says most of it, but is there a way to link from a page in the front end to a component in the backend WITHOUT asking the user to login again. 标题说明了大部分内容,但是有一种方法可以从前端的页面链接到后端的组件,而无需要求用户再次登录。 Some thoughts come to mind, Sessions tables, and cookies, but I'm just not sure how to go about doing it. 我想到了一些想法,会话表和cookie,但是我不确定该如何去做。 Any suggestions? 有什么建议么?

Joomla! Joomla! runs as two separate applications, one for the front-end and one for the back-end. 作为两个独立的应用程序运行,一个用于前端,一个用于后端。

To do what you're suggesting is problematic: 做您建议的事情是有问题的:

  1. Any system you implement to get this working could compromise site security. 您为实现此目的而实施的任何系统都可能损害站点安全性。

  2. You would have to find/build a mechanism that logs the user into both the front-end and back at the same time. 您将必须找到/构建一种将用户同时登录到前端和后端的机制。

  3. As both back-end & front-end use different tokens and sessions you would also have to keep both of those alive as well. 由于后端和前端都使用不同的令牌和会话,因此您还必须同时保留这两个令牌和会话。

  4. As part of this process your software should probably limit back-end auto logins to those with the right permissions as well. 作为此过程的一部分,您的软件可能还应将后端自动登录限制为具有正确权限的用户。

I'm not aware of any extensions that do what you want but there are some that allow some backend functionality in the front-end - you can look in the "Site Access" section of the JED . 我不知道有什么扩展可以满足您的需求,但是有些扩展允许前端中的某些后端功能-您可以在JED的“站点访问”部分中查找。

Why not just add a frontend view for the component you want to display? 为什么不只为要显示的组件添加前端视图? For example like this . 例如这样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM