[Seaside] Login form via ssl (https)

Boris Popov, DeepCove Labs boris at deepcovelabs.com
Sun Sep 23 16:01:00 UTC 2012

Any specific reason you don't just want your whole application to be SSL-secured?


-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Dav
Sent: Sunday, September 23, 2012 11:15 AM
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] Login form via ssl (https)

Hi there,
 I'm implementing a login form and I need ssl to secure it.
Unfortunately I can't find on the list or on the internet a straight way to solve my issue.
Seaside behind nginx, so nginx manages ssl so far so good.
With the help of this hint:
http://forum.world.st/from-http-to-https-tc997547.html#a997580 I saw how to generate a secure link, but my question is: I have a form with login and password fields, how should I change the code to generate a https url?

I'm hacking a bit, but I don't know how to manage call: and answer: and switching between http and https The following code is what I tried:

MyComponent>>renderContentOn: html
 html anchor secureCallback: [self call: MyLogin new]; with: [html span:'Login'].

MyLogin>>renderContentOn: html
html form
		with: [html textInput 	on: #username of: self session; placeholder:
				html textInput	on: #password of: self session;	placeholder: 'password'.	
				html submitButton callback: [ self session validateLogin.	
												self answer]; value: 'login'].

for the definition of secureCallback: see

Clicking the submit button does not switch back to http, of course, but I don't know how to solve it. Any hint?

View this message in context: http://forum.world.st/Login-form-via-ssl-https-tp4648556.html
Sent from the Seaside General mailing list archive at Nabble.com.
seaside mailing list
seaside at lists.squeakfoundation.org

More information about the seaside mailing list