I've created a Module with some pages and I'm wondering how do I force this pages to use SSL on the url, like the customer login page. Not all of the pages need it, but some do.
What comes to mind (though I haven't tried it) is to evaluate the url in the action controller and redirect to
https:// if SSL is enabled in magento config and the current URL is not using it.
Is this approach correct? Or does this kind of setting go in the configuration file?