- Home
- Technical Library
- Partners
- Blog
- Ideas
- Code Share
-
Discussion Boards
- Announcements
- General Development
- New to Cloud
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Jobs Board - Developer
- Job Board - Administrators
- More
Discussions
- Announcements
- General Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Jobs Board - Developers
- Jobs Board - Administrators
- Force.com Discussion Boards
- :
- Developer Boards
- :
- Perl, PHP, Python & Ruby Development
- :
- Re: Authenticate Against Salesforce
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Authentica te Against Salesforce
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-12-2008 04:45 PM
I'm trying to figure out how to use Salesforce to authenticate against. I'm using the API to make a login call against the SF API, but it requires the token, not just the username and password.
In order to get connected in the first place, I have turned off SSL verification; perhaps this is the issue. Here's the experimental code I'm using (Ruby):
---
require 'soap/wsdlDriver'
wsdl = "file:///Users/wycats/Documents/salesforce.wsdl" # our wsdl generated by SF
driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_drive r
driver.options['protocol.http.ssl_config.verify_mo de'] = OpenSSL::SSL::VERIFY_NONE
driver.login(:username => "", :password => "")
# Result
# SOAP::FaultError: LOGIN_MUST_USE_SECURITY_TOKEN: Invalid username, password, security token; or user
# locked out. Are you at a new location? When accessing Salesforce--either via a desktop client or the
# API--from outside of your company’s trusted networks, you must add a security token to your password to
# log in. To receive a new security token, log in to Salesforce at http://www.salesforce.com and click
# Setup | My Personal Information | Reset Security Token.
---
Ideas?
In order to get connected in the first place, I have turned off SSL verification; perhaps this is the issue. Here's the experimental code I'm using (Ruby):
---
require 'soap/wsdlDriver'
wsdl = "file:///Users/wycats/Documents/salesforce.wsdl" # our wsdl generated by SF
driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_drive
driver.options['protocol.http.ssl_config.verify_mo
driver.login(:username => "
# Result
# SOAP::FaultError: LOGIN_MUST_USE_SECURITY_TOKEN: Invalid username, password, security token; or user
# locked out. Are you at a new location? When accessing Salesforce--either via a desktop client or the
# API--from outside of your company’s trusted networks, you must add a security token to your password to
# log in. To receive a new security token, log in to Salesforce at http://www.salesforce.com and click
# Setup | My Personal Information | Reset Security Token.
---
Ideas?
Re: Authentica te Against Salesforce
[ Edited ]
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-13-2008 05:33 PM - last edited on 03-13-2008 05:37 PM
Read this:
http://trust.salesforce.com/trust/security/identit y_feature.html
You can either get the security token from App Setup using clear instructions in above article. Or add your machine/server IP address to the trusted IP addresses
Message Edited by Execute EZSAAS on 03-13-2008 05:37 PM
You can either get the security token from App Setup using clear instructions in above article. Or add your machine/server IP address to the trusted IP addresses
Message Edited by Execute EZSAAS on 03-13-2008 05:37 PM
___________________________________________________________________
Email to Lead (OR) Email2Lead A FREE certified AppExchange package captures emails sent to your sales mailboxes and creates Leads, thus reducing loss of potential customers = new sales and more revenue.
www.EZSaaS.com
Email to Lead (OR) Email2Lead A FREE certified AppExchange package captures emails sent to your sales mailboxes and creates Leads, thus reducing loss of potential customers = new sales and more revenue.
www.EZSaaS.com
Message 2 of 2
(17,427 Views)

