实际上,我有一个使用WSO2身份验证服务器(它重定向到WSO2IS登录页面)使用SimpleSAML进行身份验证的CakePHP应用程序。我需要在应用程序中创建一个页面,并将这些信息发送到WSO2IS以对用户进行身份验证。我该怎么做?我没有找到任何关于它的示例/文档。 我跟着这个tutorial。与WOS2身份服务器的PHP身份验证集成
文件中simplesaml: 配置/ authsources.php
<?php
$config = array(
'wso2-sp' => array(
'saml:SP',
'entityID' => 'IntranetSP', // I supposed that it is the ID of my Service Provider
'idp' => 'https://soa.rw1.local:9443/samlsso'
)
);
?>
元/ saml20-IDP-remote.php
<?php
$metadata['https://soa.rw1.local:9443/samlsso'] = array(
'name' => array(
'en' => 'WSO2 IS',
'no' => 'WSO2 IS',
),
'description' => 'Login with WSO2 IS SAML2 IdP.',
'SingleSignOnService' => 'https://soa.rw1.local:9443/samlsso',
'SingleLogoutService' => 'https://soa.rw1.local:9443/samlsso',
'certFingerprint' => '6bf8e136eb36d4a56ea05c7ae4b9a45b63bf975d'
);
?>
在我WSO2的是:
Service provider Configuration:
Service Provider Name: IntranetSP
Local & Outbound Authentication Configuration/Request Path Authentication Configuration: basic-auth
您可以按照[1]设置sso Identity Server,使用简单的示例php [1] https://docs.wso2.com/display/IS500/SAML2+IdP+with+SimpleSAMLphp+Service+Provider –
大多数身份验证器做同样的工作,所以你可以参考其他自定义身份验证器[1] [1] https://docs.wso2.com/display/ISCONNECTORS/Identity+Server+Authenticators+and+Connectors –
@IsuraDilharaKarunaratne是的,我用这个例子它的工作..我的问题是,我需要创建一个PHP登录页面(这很容易),并发送到WSO2的信息进行身份验证..实际上,登录页面是在WSO2,所以,我的PHP应用程序重定向用户一个WSO2登录页面来完成完整的身份验证。 –