doutiaosu2310 2016-04-13 09:27
浏览 141

SAML(PHP)程序SSO自己使用工具包

Hi I would like to create single sign-on access for a product of one of our customers. It needs to be applicable for a system that relies on SAML for authorization.

I have no previous experience with SAML (a little with OAuth 2.0). I want to know the achievable solution. To program it myself from the get go and start orienting on the technical spec or use a predefined toolkit. What did you do, or would you do when you where in my situation?

I have found two fine toolkits, onelogin and simplesamlphp. I have seen the "Getting Started with SAML and PHP" Question. There they already assume you want to use a toolkit. OneLogin states that SAML is very complex and costly to implement, not with a toolkit however.

In short i want to know if this statement is true, since the source is unreliable. Self programming or toolkit?

  • 写回答

1条回答 默认 最新

  • douzhaiya3968 2016-08-18 09:40
    关注

    Note one more SAML 2.0 PHP library https://www.lightsaml.com/

    I wrote it myself, and yes, it is complex. You could take some shortcuts since it will be your internal code, but still it took me quite a lot to write it.

    I would definitely recommend you first to investigate possibilities of existing solutions you can find, and how they fit your needs, before taking it on yourself.

    If you are using Symfony, the LighSAML comes with SAML SP Bundle https://github.com/lightSAML/SpBundle that might really shorten you SAML SSO implementation.

    评论

报告相同问题?

悬赏问题

  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容