• iskradev
  • NEWBIE
  • 30 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 6
    Replies

I've been struggling (wasting) a lot of time with some problem. Let me describe it.

 

I have a mobile HTML5 app and I want to integrate it with Salesforce (basically, I want to use it as a database). I need to implement the user profile feature and store the user's details somewhere on Salesforce. A user of my app doesn't have a Salesforce account. All the interactions between Salseforce and my app must be hidden from the user. However, it seems like there's no way to use your REST API without OAuth. OAuth is a security implementation that allows users to access their Salesforce data without having to enter their password, so it's not suitable for me at all. I want to "register" my app on Salesforce, so it should become "trusted". The question is how do I securely use the API without OAuth?

 

I managed to find that thread (the author's problem is similar to my problem), but no-one answered it: http://boards.developerforce.com/t5/APIs-and-Integration/Access-to-REST-API-SALESFORCE-using-username-and-password/td-p/332731

 

I also found an article, which describes how to create an "anonymous" API, but such an API has no protection at all (without additional efforts) so everyone can read/amend/delete my data: http://www.wadewegner.com/2013/03/creating-anonymous-rest-apis-with-salesforce-com/

Currently, I'm thinking that this approach is the only way to go. I can protect (sort of) my app by using a secret key, so when my API recieves a request, it must verify whether the requester provided the correct key; then the API can decide whether to reject or accept the request. This approach requires a lot of work, though.

I created a Site and tried to visit a non-existent location with "apex" prefix in URL (so I could create a new Visualforce page). Instead of that: http://i.imgur.com/Zpux45O.png I see this: http://i.imgur.com/mW7l54c.png

 

I did enable the "Developer" checkbox in my account.

 

Another question is what's the difference between my first and second screenshots?

 

Yet another question, why are the records I'm trying to display on my Site not visible? I can see them if I visit https://c.na15.visual.force.com/apex/MyRecords but not when I visit https://blahblahname-developer-edition.na15.force.com/apex/MyRecords or https://blahblahname-developer-edition.na15.force.com/apex/MyRecords

 

I'm very confused.

This is the page I chose as my home page for my Site: http://i.imgur.com/OlXhYPA.png

Looks fine.

 

Then I accidentally stumbled upon the other home page, while playing with SalesForce: http://i.imgur.com/9nh28oe.png

What is it? Where does it come from? How do I edit it?

I'm playing with the following example: http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_custom.htm

 

I created both the controller and the page. However, I see an error: http://i.imgur.com/JxJbnMy.png

 

I have *no* idea what went wrong. The question is how to debug this?

Hello! I'm following Force.com Integration Book and having a problem with OAuth. I've set everything up, I can see my OAUTH_CLIENT_KEY and OAUTH_CLIENT_SECRET on Salesforce. So I set them via the heroku CLI client as the book suggests. The problem is that my client application stopped working, because OAuth refuses to work. I visit https://floating-brushlands-5239.herokuapp.com/orderui then enter my credentials but thereafter I stumble upon the 401 server error (OAuth Token - Expired or InvalidHTTP Status 401 - Authentication Failed: OAuth login invalid or expired access token). Are there any gotchas? I've tried everything, but had no luck. Thanks!

I'm reading Force.com tutorial workbook, tutorial #2, step 4 (Test the @future Method). The description says:

 

  1. Go to the Developer Console by clicking Your Name | Developer Console.
  2. Click the box marked Click here to enter Apex Code and enter the following code.

My problem is that I can't find any boxes with that text.

 

http://i.imgur.com/qBjHCek.png

I've been struggling (wasting) a lot of time with some problem. Let me describe it.

 

I have a mobile HTML5 app and I want to integrate it with Salesforce (basically, I want to use it as a database). I need to implement the user profile feature and store the user's details somewhere on Salesforce. A user of my app doesn't have a Salesforce account. All the interactions between Salseforce and my app must be hidden from the user. However, it seems like there's no way to use your REST API without OAuth. OAuth is a security implementation that allows users to access their Salesforce data without having to enter their password, so it's not suitable for me at all. I want to "register" my app on Salesforce, so it should become "trusted". The question is how do I securely use the API without OAuth?

 

I managed to find that thread (the author's problem is similar to my problem), but no-one answered it: http://boards.developerforce.com/t5/APIs-and-Integration/Access-to-REST-API-SALESFORCE-using-username-and-password/td-p/332731

 

I also found an article, which describes how to create an "anonymous" API, but such an API has no protection at all (without additional efforts) so everyone can read/amend/delete my data: http://www.wadewegner.com/2013/03/creating-anonymous-rest-apis-with-salesforce-com/

Currently, I'm thinking that this approach is the only way to go. I can protect (sort of) my app by using a secret key, so when my API recieves a request, it must verify whether the requester provided the correct key; then the API can decide whether to reject or accept the request. This approach requires a lot of work, though.

I've been struggling (wasting) a lot of time with some problem. Let me describe it.

 

I have a mobile HTML5 app and I want to integrate it with Salesforce (basically, I want to use it as a database). I need to implement the user profile feature and store the user's details somewhere on Salesforce. A user of my app doesn't have a Salesforce account. All the interactions between Salseforce and my app must be hidden from the user. However, it seems like there's no way to use your REST API without OAuth. OAuth is a security implementation that allows users to access their Salesforce data without having to enter their password, so it's not suitable for me at all. I want to "register" my app on Salesforce, so it should become "trusted". The question is how do I securely use the API without OAuth?

 

I managed to find that thread (the author's problem is similar to my problem), but no-one answered it: http://boards.developerforce.com/t5/APIs-and-Integration/Access-to-REST-API-SALESFORCE-using-username-and-password/td-p/332731

 

I also found an article, which describes how to create an "anonymous" API, but such an API has no protection at all (without additional efforts) so everyone can read/amend/delete my data: http://www.wadewegner.com/2013/03/creating-anonymous-rest-apis-with-salesforce-com/

Currently, I'm thinking that this approach is the only way to go. I can protect (sort of) my app by using a secret key, so when my API recieves a request, it must verify whether the requester provided the correct key; then the API can decide whether to reject or accept the request. This approach requires a lot of work, though.

This is the page I chose as my home page for my Site: http://i.imgur.com/OlXhYPA.png

Looks fine.

 

Then I accidentally stumbled upon the other home page, while playing with SalesForce: http://i.imgur.com/9nh28oe.png

What is it? Where does it come from? How do I edit it?

I'm playing with the following example: http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_custom.htm

 

I created both the controller and the page. However, I see an error: http://i.imgur.com/JxJbnMy.png

 

I have *no* idea what went wrong. The question is how to debug this?

I'm reading Force.com tutorial workbook, tutorial #2, step 4 (Test the @future Method). The description says:

 

  1. Go to the Developer Console by clicking Your Name | Developer Console.
  2. Click the box marked Click here to enter Apex Code and enter the following code.

My problem is that I can't find any boxes with that text.

 

http://i.imgur.com/qBjHCek.png