【问题标题】:Authenticate automatically by IP Address in TYPO3TYPO3中通过IP地址自动认证
【发布时间】:2019-10-29 10:50:28
【问题描述】:

我想自动验证从特定 IP 地址访问 TYPO3 中受保护区域的用户。应该跳过登录页面。应该可以直接访问受保护区域中的 URL 而无需重定向到登录页面。

我已经测试了扩展“aoe_ipauth”。不幸的是,这里不可能“直接”链接内容页面。

有人有想法吗?可能通过适配 TYPO3 中间件?

非常感谢!

【问题讨论】:

    标签: typo3 typo3-9.x


    【解决方案1】:

    我相信你在正确的轨道上,但试图解决错误的问题。您所说的扩展程序无法在链接到页面后直接登录,因为这不是身份验证服务的功能。

    查看 FE 登录过程并重定向以使其正常工作。你需要设置一些东西

    # https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Setup/Config/Index.html#typolinklinkaccessrestrictedpages
    # If set, typolinks pointing to access restricted pages will still link to the page even though the page cannot be accessed. 
    # If the value of this setting is an integer it will be interpreted as a page id to which the link will be directed.
    config.typolinkLinkAccessRestrictedPages = id_to_your_login_page
    

    当用户尚未登录时,这将设置重定向到您的登录页面。 您可以使用 aoe_ipauth 登录用户并使用重定向模式 https://docs.typo3.org/c/typo3/cms-felogin/master/en-us/LoginMechanism/RedirectModes/Index.html#defined-by-get-post-varshttps://docs.typo3.org/c/typo3/cms-felogin/master/en-us/LoginMechanism/RedirectModes/Index.html#defined-by-referrer 将用户重定向回他们来自的位置

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-10-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-01
      • 2020-06-10
      相关资源
      最近更新 更多