简体   繁体   English

SessionHook是否使用SimpleSAMLphp?

[英]SessionHook for SimpleSAMLphp?

I am wondering if there is a feature that mimics the SessionHook feature of Shibboleth that I can use in SimpleSAMLphp? 我想知道是否存在可以在SimpleSAMLphp中使用的模仿Shibboleth的SessionHook功能的功能? I need to access a page before the ultimate redirect to the requested page is made. 在最终重定向到请求的页面之前,我需要访问一个页面。

I see 3 options for you. 我为您提供3种选择。 Which one to pick likely depends on what your page is trying to accomplish. 选择哪个可能取决于您页面要完成的工作。

  1. Create an AuthProc filter . 创建一个AuthProc过滤器 AuthProc filters allow you to perform post authentication processing. AuthProc筛选器允许您执行身份验证后处理。 You can create one that will send the user to the page you want. 您可以创建一个将用户转到所需页面的页面。 When the page is done processing it can resume the regular processing and the user will end up on the expected, requested page. 页面处理完成后,它可以恢复常规处理,并且用户最终将进入预期的请求页面。
  2. Define a ReturnCallback . 定义一个ReturnCallback If you want to just run a code snippet then you can define a callback. 如果只想运行一个代码段,则可以定义一个回调。
  3. Define a session callback . 定义会话回调 If you want to run some code each time the session is created or loaded. 如果要在每次创建或加载会话时运行一些代码。

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

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