使您的 PHP 网站成为 SAML 身份提供者 [英] Making your PHP website into SAML Identity Provider

查看:61
本文介绍了使您的 PHP 网站成为 SAML 身份提供者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

故事是我需要让我的网站充当身份提供者(阅读:IDP).网站本身在 Zend 平台上.Idea 正在制作一个 IDP 控制器,服务提供商(阅读:SP)通过它联系 IDP.由于它必须是网站的一部分,我需要包含一些扩展程序,以便于响应来自 SP 的 SAML 请求.

Story is that I need to make my website act as Identity Provider (read: IDP). Website itself is on Zend platform. Idea is making a IDP controller by which Service Providers (read: SP) contacts IDP. As it must be part of the website, I would need to include some extension, which could be easily used for responding SAML requests from SP.

我从以下位置找到了 PHP 扩展列表:https://wiki.surfnetlabs.nl/display/OSP/RFC+-+OpenSAMLphp,+a+new+PHP+library+for+SAML+2.0+support

I have found list of PHP extensions from: https://wiki.surfnetlabs.nl/display/OSP/RFC+-+OpenSAMLphp,+a+new+PHP+library+for+SAML+2.0+support

所有这些扩展都有很少的文档或太复杂.例如,我还没有找到在我的应用程序中使用 SimpleSamlPHP 的方法,而且从中提取有用的代码看起来非常耗时(我真的没有了).此外,我发现所有这些都很难进入网站.

All of these extensions have little documentation or are too complex. For example I haven't found a way to use SimpleSamlPHP in my application and also extracting useful code out of it looks very time consuming (which I really don't have anymore). Also I find all of them hard to implement into website.

我已经用谷歌搜索和检查 github 好几天了,试图找到使用某个库的简单方法(现在我正在尝试实现 Lasso,这看起来很合理,但不幸的是缺乏很好的例子/信息如何使用它作为IDP).

I have been googling and checking github for days now, trying to find easy way to use some library (right now I'm trying to implement Lasso, which seems reasonable, but unfortunately lacks good examples / information how to use it as IDP).

任何形式的批评、想法、帮助或教程/代码示例都是有用的.

Any kind of criticism, ideas, help or tutorial/code examples would be useful.

推荐答案

我写了一个指南,介绍如何使用 simplesamlphp 在开源软件 (Tiki-wiki) 上部署 IdP,以及如何将 IdP 连接到 google 或 salesforce.看一看:

I wrote a guide about how deploy on an open source software (Tiki-wiki) an IdP using simplesamlphp, and how to connect the IdP to google or salesforce. Take a look:

https://github.com/pitbulk/tiki-saml/blob/master/doc/tiki_wiki_as_idp.rst

这篇关于使您的 PHP 网站成为 SAML 身份提供者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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