force-server icon indicating copy to clipboard operation
force-server copied to clipboard

Add ssl functions

Open chrisl8888 opened this issue 9 years ago • 3 comments

Add ability to use ssl Fixes #7 merging in changes done by @alexndreazevedo (Thanks btw)

chrisl8888 avatar Oct 02 '15 17:10 chrisl8888

ping @ccoenraets

chrisl8888 avatar Oct 14 '15 14:10 chrisl8888

@chrisjlee the server crashes at startup -- Looks like missing ). Also, what is the rationale for replacing the application/json content-type (as described in the doc: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_usage_rest_resources.htm) with form-urlencoded?

ccoenraets avatar Oct 15 '15 14:10 ccoenraets

@ccoenraets the code was extended for a specific usage. I believe it's no longer able to be merged because the focus of your code is work within Heroku, but this one is to be used within own server. The Heroku usage wasn't tested. The Heroku SSL is managed by add-on, however the owned cloud server can be used with SSL directly into web server, the express in case.

Regarding the rationale replacement of content-type, when I tested it, SF worked only with form-urlencoded. Any request was failed when I used the application/json.

I'm glad with contribution of @chrisjlee, but the focus of ssl-forceserver was changed during the development with own server.

It works, as you can see: https://alexandreazevedo.me:8200/

Thank you, @ccoenraets and @chrisjlee.

vdyalex avatar Oct 16 '15 14:10 vdyalex