The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
7 views

How to access the context in the canvas app using payload?

Based on the canvas documentation, i have setup the canvas app so that the authentication is OAuth. Also, I have been in the assumption that OAuth flow can be handled entirely through javascript ...
2
votes
2answers
27 views

EmailMessage Insert from an Authenticated Force.com Site VF Page throws INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY

I am building a typical help site where there are a lot of unauthenticated pages that the user can view like product catalog, help guides ...etc and couple of authenticated pages (My Cases, Case ...
2
votes
1answer
23 views

how would Force.com Canvas SDK and canvas method “verifyAndDecodeAsJson” work with non-java platform? Is there any workaround?

I am using signed request as the method to POST the data to the canvas app. The canvas app is the SAP BSP page. I now seeing a big road block that I am not able to retrieve the values from the context ...
1
vote
3answers
41 views

How can i login into salesforce from salesforce let's say through apex code or REST API class

How can I get the session id? Can I log in into Salesforce through Apex code? I have achieved similar functionality using Java but I am not sure how to achieve this using Apex.
2
votes
2answers
58 views

How to use JavaScript to detect if a user has a valid Salesforce session

I have a VisualForce page that it is possible to use offline because I am caching the page and other resources in the application cache. I have a button on that page that will execute a Visualforce ...
1
vote
2answers
14 views

Salesforce Mobile SDK Authentication flow issue

Created an android_hybrid Mobile app with Mobile SKD version 2.1 Added the remoteAccessConsumerKey at bootconfig.json as per my Connected App Update the oauthscope as "oauthScopes": ["api ...
1
vote
1answer
38 views

In what case should OAuth 2.0 Refresh Token Flow be used?

I am now using web server authentication flow along with refresh token flow in my system. Once a user granted a permission for the app to access, the app will request a permission, an access token and ...
1
vote
2answers
20 views

Allow access to certain sections of Customer Portal without login

Is it possible to give limited access to users in Customer Portal without logging in? (.e.g. access to the homepage and and some visual force pages). When the user tries to access say a Custom Object ...
1
vote
2answers
84 views

Authorization Required

I have created simple site that create a new case. Note : I have given the Site permissions Visualforce page,Controller ,Lead Object and Case Object. While execute the site Lead is created ...
2
votes
0answers
44 views

Authorization header missing from RestRequest headers map

I have a publicly exposed web service (Rest Apex) through Sites and I'd like to do basic authentication which I will manage myself. I noticed that when I specify Authorization: Basic ...
1
vote
0answers
41 views

Multiple Connected apps for oauth

I have a web application that has a mobile component. Both of them have Salesforce oAuth and use different connected apps. Sometimes users authenticate only via the mobile app and their credentials ...
3
votes
0answers
58 views

Invalid Signature Identity Provider Event Log for Self Signed Certificate SAML Sp Intiatied Web Browser SSO Profile

I am implementing Service Provider component of SAML protocol and I am aiming to achieve SP Initiated Web Browser SSO Profile.I have configured my domain I dint add my self signed digital ...
4
votes
1answer
35 views

What is the best authentication scheme for my REST application?

In my company we have created report data in Salesforce. I would like to make an internal web application that reads this report data via the REST API of Salesforce and visualizes this. I am now using ...
4
votes
1answer
64 views

Using LinkedIn for social login to salesforce

so i have been looking for solutions all over the web to try and find the solution to this simple question: how do i use linkedin as a social login method for any salesforce app/portal/community i ...
0
votes
0answers
32 views

Rails form that saves data to Salesforce and local DB

I have a user registration form that requires certain fields to be saved to different locations. Fields such as email and name need to be used to create a new salesforce object (Account). Email, ...
5
votes
1answer
115 views

frontdoor.jsp for Customer Portal user? How to authenticate a portal user with session id?

authenticate a customer portal using SOAP login() method and LoginScopeHeader receive SessionID in LoginResult object How can I use SessionID to redirect the user's browser to the customer portal and ...
0
votes
0answers
31 views

Asking to login again when application is terminated and launch it again

I have create a web view with frame size to which i am adding the sales force web view after launching the app in the first time it is asking the credentials and login fine But the problem is when i ...
3
votes
0answers
90 views

Rest API Authorization

We're trying to use the JSforce library (http://jsforce.github.io/) for javascript access to the salesforce api but we keep getting "invalid_grant" errors when trying to authenticate <script ...
4
votes
1answer
195 views

Passing Session Id using URL instead of HTTP headers

When invoking the Tooling API, is there a way to pass the Session Id using just URL parameters? I've seen a couple of Salesforce APIs that work when the Session Id is contained in a URL parameter: ...
2
votes
0answers
103 views

OAuth 2.0 JWT Bearer Token Flow giving a user hasn't approved this consumer error

I have setup a connected app and want to use the OAuth JWT. Based on my understanding of the salesforce documentation only preauthorized client can use this flow to get an access token. I have enabled ...
2
votes
1answer
70 views

obtain refresh token with no redirect url?

Is there some website I can temporarily use as a redirect url? I am creating an app that has no web pages and I just need a refresh token so the app can stay connected pretty much forever to sales ...
6
votes
0answers
126 views

Using the Mobile SDK JS API, how can I determine if I have a refresh token already?

Background I currently have a hybrid iOS app that runs locally (index.html in the xcode app) that essentially provides a basic start page and login flow instructions that lead off to a force.com web ...
2
votes
2answers
39 views

Linking to agnostic login window?

I'm running into an issue where if a user's session is expired, next time they try to login, the login window is automatically pointed at their specific pod/mydomain. Not too bad for regular users, ...
2
votes
0answers
216 views

OAuth 2.0 JWT Bearer Token Flow

I'm trying to perform the OAuth 2.0 JWT Bearer Token Flow: https://help.salesforce.com/HTViewHelpDoc?id=remoteaccess_oauth_jwt_flow.htm&language=en_US But I'm having this issue: ...
2
votes
1answer
115 views

Deploy SalesForce HTML5 app into device.emulator

I have created a HTML5 jquery mobile app as this link. I can see the sample in browser and its working fine. They also mentioned that same can be deployed in a mobile device after logging in with ...
3
votes
1answer
44 views

Receiving an Error for creating IOS hybrid application from a visualforce page

I try to create an IOS hybrid_remote application from a visualforce page, but when I run it, I receive the following error message: ...
0
votes
2answers
53 views

Getting “Not Authorized” when using fuelsdk client

I am doing exactly what the docs are saying: require 'fuelsdk' client = FuelSDK::Client.new({client: { id: "myclientid", secret: "mysecret" }}) campaign = FuelSDK::Campaign.new campaign.authStub ...
1
vote
1answer
59 views

Integrating php with Salesforce

I am asked to built a web application in php where the back end database is going to be Salesforce Objects. The scenario is that "users" (can be 10,000+) would register/log in to the application and ...
2
votes
1answer
106 views

Error: Janrain authentication

I followed the janrain Auth provider tutorial for social login implementation and getting following error: ...
3
votes
1answer
190 views

Salesforce Apex Data Loader GUI vs. Command Line login

(Crossposted from SO - http://stackoverflow.com/questions/21255608/salesforce-apex-data-loader-gui-vs-command-line-login) I'm trying to wrap up some Upsert functionality into a simple application ...
4
votes
1answer
70 views

Is it possible to setup a web tab in Salesforce which will go to this KB without needing to login using username and password?

We have a Web KB that is built in PHP. Is it possible to setup a web tab in Salesforce which will go to this KB without needing to login using username and password? I initially thought that SAML ...
9
votes
3answers
264 views

Why Salesforce.com logs the user in automatically after his/her session has been invalidated?

I'm logging in users via REST in my .NET application. For that in the WebBrowser control constructor I do the following: string server = "https://login.salesforce.com/"; var authURI = new ...
3
votes
2answers
133 views

Auth Provider redirect to Community Custom Domain

I have a salesforce community that has two URLs, one of which is a custom domain, e.g. 1) mysite.force.com 2) mysite.com When an Authentication Provider is used (in this case, Facebook) to login, ...
3
votes
1answer
121 views

Retrieve NT login username on Visual Force page - For non-logged users

I'm looking for an opportunity to retrieve the NT login username from a Visualforce page or from an Apex class. It would be HttpContext.Current.User.Identity.Name in C#. --Extension-- Our business ...
3
votes
1answer
885 views

How to integrate external web app?

After reading Force.com Canvas Developer's Guide, I don't think I have figured out a good way to integrate an external web app inside salesforce.com. Following are questions that I am not sure about. ...
6
votes
2answers
359 views

How do I setup access for a REST resource apex class using session ID

We have a REST resource apex class, and its sole purpose is to eliminate the problem of hitting Salesforce page view limits. The way it is currently setup doesn't seem to be eliminating this issue. ...
10
votes
1answer
199 views

Will I break a TOS by letting contacts login to a visualforce page I create

Will I be breaking any TOS by giving contacts a username (email) and password (generated) to sign into a visualforce page to access an app I build. I want to do this without buying any customer portal ...
0
votes
1answer
1k views

“unsupported_grant_type” error when trying to authenticate

I am using the following code to try to get an authenticate. This is in C#, using the RestSharp library: public string GetAuthToken(string code) { var client = new ...
5
votes
1answer
146 views

OAuth 2.0 handshake for Portal users

As described on OAuth for portal , initial OAuth handshake for authorization code gathering is changed. It should be used different domain URL Like, instead of : ...
0
votes
0answers
87 views

Problem in requesting token for oAuth from rest console

when i am requesting token for oAuth from rest console, get the following error, "error_description": "invalid client credentials", "error": "invalid_client" Any help appreciated..
1
vote
1answer
647 views

How can we get access token url and authorize url in rest console oAuth authorization? [duplicate]

I am new i rest api and salesforce. I am trying to connect rest console with salesforce. For setting oAuth authorization i need access token url and authorize url. Where would i get these values ...
4
votes
3answers
97 views

Is there an official “Log in with Salesforce” image?

Salesforce allows an external application to authenticate using OAuth. Other providers of this service offer official button images that you can embed in your application to launch this process e.g.: ...
3
votes
1answer
78 views

Any way to get a mobile friendly login page with a Facebook provider type “Auth. Provider”?

Salesforce's "Facebook" auth provider directs a non-logged in user to the page https://www.facebook.com/login.php that is not very mobile friendly. I see no configuration for this page and appending ...
4
votes
1answer
230 views

Canvas Signed Request not being processed correctly

I currently have a canvas app deployed across multiple orgs. This app uses signed request to authenticate a user. Along with some visualforce pages. Just this morning the signed request suddenly ...
1
vote
1answer
904 views

SSL Exception when calling out: “System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names present”

When I call out to an external webservice, I'm getting the following exception "System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names present". ...
2
votes
1answer
229 views

ReCaptcha in web-to-lead form using PHP recaptcha.lib in Site.com salesforce

I have created a web-to-lead form and I am using the generated HTML in my site.com. I am using reCaptcha in my form. HTML Web-to-Lead form <form action="/recaptcha_verify.php" method="post" ...
1
vote
0answers
122 views

How to unset Time-Based Token Keys feature

We added Time-Based Token Keys for our users but have since decided that we don't want to go down that route. We followed the instructions to remove the key and successfully removed the key. ...
3
votes
0answers
74 views

Force user to agree to terms and conditions before using the system on portal?

I have a portal app and when a user logs in I want to force them to agree to the latest terms and conditions (t&cs) before using the system. So once a user logs in I check to see if they have ...
2
votes
1answer
181 views

How to handle session invalidation for username / password OAuth flow?

Question What's the proper way to monitor for session timeout and automatically get a new session using node-salesforce? Background Building a basic node.js app on heroku. Using the OAuth2 ...
7
votes
2answers
449 views

Salesforce call Heroku Web Service

We have a salesforce application, and the application triggers a callout to a heroku service that gathers some data from a third party database. After gathering and processing the data from the third ...