Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Perl, PHP, Python & Ruby Development
- :
- Delegated Authentication (Single Sign On) using P...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Delegated Authentica tion (Single Sign On) using PHP
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-16-2012 09:46 PM
1) Contact Salesforce.com to turn on Single Sign-On for your organization. DONE
2) Download the Web Services Description Language (WSDL) file, AuthenticationService.wsdl, that describes the Single Sign-On service. DONE
3) In Salesforce, specify your organization’s Single Sign-On Gateway URL by clicking Setup Security Controls Single Sign On Settings. DONE
4) Modify your user profiles to contain the "Uses Single Sign-On" user permission. DONE
5) Build your SSO Web Service. NOT DONE
Please help me in creating PHP webservice using soap library for single sign on Delegated Authentication.
I had soap library uploaded in my folder. My script is given below please correct if there is anything
missing.
--------------------------------------------------
Soap Client
<?php
require_once("SoapLibrary/nusoap.php");
ini_set("soap.wsdl_cache_enabled", "0");
try{
$client = new nusoap_client(SITE_URL."SFAuthenticationServer.php
//$client = new nusoap_client(SITE_URL."AuthenticationService.wsdl
$param = array('username' =>"test@test.com",'password'=>"xxxxx",'sourceIp'=>
$ProcessSync = $client->call('Authenticate', $param,'http://www.AccessIntelligence.com/');
echo '<pre>';
print_r($ProcessSync);
}catch (Exception $e) {
$Message = $e->getMessage();
throw new Exception($Message);
}
?>
Soap Server
<?php
require_once("SoapLibrary/nusoap.php");
$server = new soap_server;
$server->configureWSDL('SalesforceAuthenticationSe
$server->register('Authenticate',array('username'=
function Authenticate($username, $password, $sourceIp) {
try{
return 'true';
} catch (Exception $e) {
$Message = $e->getMessage();
throw new Exception($Message);
}
}
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$server->service($HTTP_RAW_POST_DATA);
?>
--------------------------------------------------
Re: Delegated Authentica tion (Single Sign On) using PHP
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-15-2012 01:01 AM
hi,Issohal:
I see your step 4) has done, I want to know where can i find "Uses Single Sign-On" check box? i go through all profiles but can not find it in "General User Perssion" section.
Can you help me?

