實際上,我有一個使用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登錄頁面來完成完整的身份驗證。 –