首页 \ 问答 \ SimpleSamlphp错误:状态信息丢失,无法重启请求(SimpleSamlphp Error: State information lost, and no way to restart the request)

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
更新时间:2023-05-17 18:05

最满意答案

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, 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, ...
  • 您可以使用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 ...
  • 我以前遇到过这个问题。 您需要在写入之前更改单元格的格式。 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 ...
  • 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 ...
  • 这完全取决于上下文。 你提到xml; 在xml中 ,格式通常表示在非文化文化中(这意味着:。是十进制的,是数千等)。 同样,xml具有日期/时间的特定表示。 如果你通过XmlWriter , XElement , XmlSerializer (等)来构建你的xml,这将是自动的; 如果你手工制作它可能会混淆(混合不同的表示)。 如果数据不是预期的格式,您可能必须将其加载到string属性(而不是float等),并单独处理它。 It depends entirely on the context. You m ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)