doumengmian1180
2018-03-27 04:50
浏览 129
已采纳

如何在php中反序列化SAML请求 - 无法安装LightSAML

I am trying to install LightSAML https://packagist.org/packages/lightsaml/lightsaml, into a Laravel app, to do some very basic deserialization of a HTTP POST request, but getting errors:

 Your requirements could not be resolved to an installable set of packages.

 Problem 1
 - Conclusion: don't install lightsaml/lightsaml 1.3.6
 .....

Installation failed, reverting ./composer.json to its original content.

It does seem a little old so not sure if I can make it work at all - if not, can anyone suggest even simpler means of deserializing and accessing the individual attributes of a SAML request?

I have also seen https://github.com/onelogin/php-saml, however it looks like it does more than I need - I don't need to do the actual auth part using SAML, I merely need to accept a SAML http post and use that data for my own bespoke auth token creation.

图片转代码服务由CSDN问答提供 功能建议

我正在尝试安装LightSAML https://packagist.org/packages/lightsaml/lightsaml ,进入Laravel应用程序,对HTTP POST请求进行一些非常基本的反序列化,但收到错误:

 您的要求无法解析为可安装的软件包。
 
问题1 
  - 结论:不要安装lightsaml / lightsaml 1.3.6 
 ...  .. 
 
安装失败,将./composer.json恢复为原始内容。
   
 
 

它看起来有点旧,所以不确定我是否可以制作它 完全工作 - 如果没有,任何人都可以建议更简单的反序列化方法和访问SAML请求的各个属性吗?

我还看到 https://github.com/onelogin/php-saml ,但它看起来比我需要的更多 - 我不需要 这样做 使用SAML的实际身份验证部分,我只需要接受SAML http帖子并将该数据用于我自己的定制身份验证令牌创建。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

3条回答 默认 最新

相关推荐 更多相似问题