SimpleSamlphp错误:状态信息丢失,无法重启请求(SimpleSamlphp Error: State information lost, and no way to restart the request)
我在使用SimpleSamlphp实现的SSO时遇到了麻烦。
我已将所有内容配置如下:
authsources.php
'default-sp' => array( 'saml:SP', 'entityID' => '{{URLSP}}', 'idp' => '{{URLIDP}}', 'discoURL' => NULL, 'privatekey' => 'saml.pem', 'certificate' => 'saml.crt', ),
authsources.php(Idp)
'example-userpass' => array( 'exampleauth:Static', 'ecid' => '152', 'orgdir' => '{{}}', 'message' => '{{}}', ),
我在saml20-idp-remote / saml20-sp-remote中正确设置了元数据
我得到的错误是:
State information lost, and no way to restart the request. 0: xxxlib/SimpleSAML/Auth/State.php:154 (SimpleSAML_Auth_State::loadState) 1: xxx/modules/saml/www/sp/saml2-acs.php:31 (require) 2: xxx/www/module.php:137 (N/A)
我检查了SAML响应,我看到签名值不同,可能是问题所在?
I'm having troubles with a SSO implemented with SimpleSamlphp.
I have configured everything as follows:
authsources.php
'default-sp' => array( 'saml:SP', 'entityID' => '{{URLSP}}', 'idp' => '{{URLIDP}}', 'discoURL' => NULL, 'privatekey' => 'saml.pem', 'certificate' => 'saml.crt', ),
authsources.php (Idp)
'example-userpass' => array( 'exampleauth:Static', 'ecid' => '152', 'orgdir' => '{{}}', 'message' => '{{}}', ),
And I set the metadata correctly in saml20-idp-remote / saml20-sp-remote
The error I'm getting is:
State information lost, and no way to restart the request. 0: xxxlib/SimpleSAML/Auth/State.php:154 (SimpleSAML_Auth_State::loadState) 1: xxx/modules/saml/www/sp/saml2-acs.php:31 (require) 2: xxx/www/module.php:137 (N/A)
I've checked the SAML response and I've seen that the signature values are different, could be that the problem?
原文:https://stackoverflow.com/questions/24885650
最满意答案
BigDecimal
构造函数 - 比如Double.parseDouble
等 - 总是使用'。' 作为小数点分隔符。 它根本不使用当前的文化,也没有任何方法来指定数字格式。(如果这是明确记录的,那将是很好的,诚然......)
The
BigDecimal
constructor - likeDouble.parseDouble
etc - always uses '.' as a decimal separator. It doesn't use the current culture at all, nor is there any way to specify a number format.(It would be nice if this were clearly documented, admittedly...)
相关问答
更多-
使用String.format的重载,可以指定语言环境: return String.format(Locale.ROOT, "%.2f", someDouble); 如果你只是格式化一个数字 - 就像你在这里一样 - 那么使用NumberFormat可能会更合适。 但是,如果您需要String.format的其余格式化功能,这应该可以正常工作。 Use the overload of String.format which lets you specify the locale: return Stri ...
-
BigDecimal构造函数 - 比如Double.parseDouble等 - 总是使用'。' 作为小数点分隔符。 它根本不使用当前的文化,也没有任何方法来指定数字格式。 (如果这是明确记录的,那将是很好的,诚然......) The BigDecimal constructor - like Double.parseDouble etc - always uses '.' as a decimal separator. It doesn't use the current culture at all, ...
-
转换小数分隔符(Convert decimal separator)[2023-12-04]
您可以使用read_csv的decimal参数: df = pd.read_csv(file.csv, decimal=',') You can use the decimal parameter of read_csv: df = pd.read_csv(file.csv, decimal=',') -
我自己发现了自己的问题。 我需要在标签或文本字段中专门定义NSNumbers输出的本地化。 它不是由系统自动完成的。 使用'NSNumberFormatter`进行本地化,输出可能如下所示: formatter = [[NSNumberFormatter alloc] init]; [formatter setLocale:[NSLocale currentLocale]]; cell.yourLabel.text = [NSString StringWithFormat:@"%@", [formatter ...
-
在VBA中更改小数分隔符(Changing decimal separator in VBA)[2022-02-21]
我以前遇到过这个问题。 您需要在写入之前更改单元格的格式。 Application.Workbooks("Book1").Sheets("Sheet1").Range("A1:A100").NumberFormat = "@" 在该行运行之后,您可以像这样写入列: Cells(1,1).Value = "12.3" Excel将保留字符串格式,而不是将其转换为double。 希望这可以帮助。 I've had this issue before. You need to change the forma ... -
为了翻译文件内容,可能的方法是: 使用XMLHttpRequest获取文件(就像Dygraph一样) 转换内容将“,”替换为“。” 接下来,可以将修改后的CSV提供给Dygraph。 这可以通过以下方式实现: var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if(xmlhttp.status == 200 && xmlhttp.readyState == 4){ // got the fi ...
-
我不认为有这样做的内置功能。 (这就是我读完你的Q后的想法;我刚检查过,在文档中找不到一个)。 无论如何,你很容易自己动手。 (下面是一个完整的例子 - 也就是说,它将生成一个mpl图,其中一个轴具有通用的刻度标签 - 尽管您需要五行代码来创建自定义刻度标签 - 三个(包括导入语句)用于该功能用于创建自定义标签,两行用于创建新标签并将它们放置在指定的轴上。) # first code a function to generate the axis labels you want # ie, turn nu ...
-
Virtuoso小数分隔符(Virtuoso decimal separator)[2022-10-26]
Turtle依赖于XML Schema数据类型 ,其中唯一有效的小数分隔符是点。 这些值的后续(重新)表示可能会因区域设置(可能会将小数点分隔符更改为逗号和/或添加千位分隔符)而有所不同,但这似乎是一个不同的问题... (请注意,在撰写本文时,v07.20.3213相当老;建议所有用户(无论是开源还是商业版)更新到当前的v7.20.3217或更高版本。) (ObDisclaimer:我为Virtuoso的制作人OpenLink Software工作。) Turtle relies on XML Schema ... -
虽然没有将他的评论作为可能的答案,但我认为这是一个很好的解决方案。 这里有一点代码 在Oracle案例中,将会话改为,. 或., : alter session set NLS_NUMERIC_CHARACTERS=',.'; 取决于服务器的区域设置。 只需使用DecimalFormatSymbols来获取这些值: String decimalSeparator = String.valueOf(new DecimalFormatSymbols().getDecimalSeparator()); Strin ...
-
关于小数分隔符的问题(Question about decimal separator)[2022-09-18]
这完全取决于上下文。 你提到xml; 在xml中 ,格式通常表示在非文化文化中(这意味着:。是十进制的,是数千等)。 同样,xml具有日期/时间的特定表示。 如果你通过XmlWriter , XElement , XmlSerializer (等)来构建你的xml,这将是自动的; 如果你手工制作它可能会混淆(混合不同的表示)。 如果数据不是预期的格式,您可能必须将其加载到string属性(而不是float等),并单独处理它。 It depends entirely on the context. You m ...