Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

HTTPS support
Started by naldikt Mar 19 2010 05:05 AM

- - - - -
1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

naldikt

[GLOBAL: userInfoPane.html]
naldikt
  • Observer

  • 2 posts
  • Guests

Hi,

I know that lua by default supports http.request to make http connection. I have been looking over the internet to see if there is any https module already available out there, and I found one here http://www.inf.puc-rio.br/~brunoos/luasec/ , that will allow us to do https.request.

[1] I guess my first question is, does anyone know how to install this? The instruction that comes with it told me to find the lua folder under /usr/share/lib/lua/... but I could not find anything named 'lua' under that folder or anywhere around the path. How does Corona utilizes lua if it does not exist then?

[2] Does anyone know where ssl.core and ssl.context are located? those 2 files are also required to do https.request.

[3] How do you guys perform https ? are you using the same package?

Thank you.
uid: 3972 topic_id: 652 reply_id: 300652


[TOPIC: post.html]
#2

walter

[GLOBAL: userInfoPane.html]
walter
  • Moderator

  • 726 posts
  • Alumni

It's on our todo list to provide https support for web services.

The workaround today is to use the webpopup functionality for user login/authentication much like the Facebook Connect sample code does. Here, you browse to a remote web page (of your design) using https and sign in through the web page. The response from that sign in would contain the session keys you need for subsequent http requests.
uid: 26 topic_id: 652 reply_id: 1360



[topic_controls]
[/topic_controls]