force-server
force-server copied to clipboard
Add ssl functions
Add ability to use ssl Fixes #7 merging in changes done by @alexndreazevedo (Thanks btw)
ping @ccoenraets
@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 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.