SimpleSAMLPHP 重定向循环 [英] SimpleSAMLPHP redirection loop

查看:69
本文介绍了SimpleSAMLPHP 重定向循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试使用自定义 mysql 数据库设置 sso,但它在以下两个请求之间陷入无限循环.

we are trying to setup sso with custom mysql database but it is going into endless loop between below two requests.

POST http://192.168.0.15/simplesaml/module.php/core/loginuserpass.php

设置 Cookie

PHPSESSID=d0eaabb959ffeb2a0dd20f4744945f8f; path=/; HttpOnly
SimpleSAMLAuthToken=_297a91e9a4e14c61d247427063201a39587396c2e3; path=/; httponly

http://192.168.0.15/simplesaml/module.php/core/loginuserpass.php?AuthState=_e3e75218660095b936b9582356bcbc7b1e26934876%3Ahttp%3A%2F%2F192.168.0.15%2Fsimplesaml%2Fmodule.php%2Fcore%2Fas_login.php%3FAuthId%3Dexample-sql%26ReturnTo%3Dhttp%253A%252F%252F192.168.0.2%252F%252Fver06%252Fapp.php

设置 Cookie

PHPSESSID=92688949c724d39e673eec73b0674de0; path=/; HttpOnly

192.168.0.15 是我们的 sso 服务器,192.168.0.2 是请求 sso 的网站.

192.168.0.15 is our sso server and 192.168.0.2 is the website which is requesting for sso.

我们错过了什么吗?是否有任何客户端和服务器分离的 sso 模块以方便使用.

Are we missing anything? also is there any client and server separation of sso modules for ease of use.

我们也没有生成日志文件.在文件夹上验证权限.

Also we are not getting log file generated. permissions verified on folder.

推荐答案

检查 config.php 文件中的以下参数.

Check following parameters in the config.php file.

'baseurlpath' => 'http[s]://YOUR_DOMAIN/simplesaml/',
'session.cookie.domain' => '.YOUR_DOMAIN',
'session.cookie.secure' => true, // ACCORDING TO YOUR REQUIREMENT
'session.phpsession.savepath' => '/PATH/TO/STORE/SESSION', // MAKE SURE THIS PATH IS WRITABLE BY WEB/APP SERVER  
'session.phpsession.httponly' => true, // ACCORDING TO YOUR REQUIREMENT

这篇关于SimpleSAMLPHP 重定向循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆