SSL questions

2011-03-11 Thread Krissy Masters
I have not seen or found anything but is there a way to route::SSL links? An
option in the html-link(link, array( ssl = true)) or anything like that?
Click login which needs ssl but if your on a non ssl page how do you force
it without redirect?

Some links need to be ssl where some do not. I have seen a lot of forceSSL
functions:: read location if not https redirect to https// $this-here type
set up.

Has anyone seen a good component for SSL (google just gives me 2007 older
ones that I could find samples of and nothing that seemed quite promising)

Tips / tricks?

Thanks guy

K

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: SSL questions

2011-03-11 Thread Sam Bernard
How about you just extend the html helper and add your own link function- 
something like:

function sslLink($title, $url = null, $options = array(), 
$confirmMessage = false){
if(!$url){
$url = $title;
}

//manually set ssl domain, in case it's different than current 
domain
$sslDomain = 'https://yourdomain.com';

//Check to make sure passed url isn't already a valid url 
if(is_array($url) || !strstr($url, 'http')){
$url = $sslDomain . Router::url($url);
}
return $this-Html-link($title, $url, $options, $confirmMessage);
}

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


RE: SSL questions

2011-03-11 Thread Krissy Masters
Nice!

 

Thanks. Will give that a shot.

 

K

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: SSL questions

2011-03-11 Thread rgreenphotodesign
Have you tried the Security component's  requireSecure()? It will let
you determine that based on actions. May eliminate the need to extend
or customize the HTML helper.

On Mar 11, 10:26 am, Krissy Masters naked.cake.ba...@gmail.com
wrote:
 Nice!

 Thanks. Will give that a shot.

 K

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


RE: SSL questions

2011-03-11 Thread Krissy Masters
Been trying a few things but with Security Component I get never ending
loops in the browser with blackhole forceSSL as instructed in various guides
/ tutorials so for now I am just moving on with other parts of the site.

K

-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of rgreenphotodesign
Sent: Friday, March 11, 2011 7:04 PM
To: CakePHP
Subject: Re: SSL questions

Have you tried the Security component's  requireSecure()? It will let
you determine that based on actions. May eliminate the need to extend
or customize the HTML helper.

On Mar 11, 10:26 am, Krissy Masters naked.cake.ba...@gmail.com
wrote:
 Nice!

 Thanks. Will give that a shot.

 K

-- 
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: RE: SSL questions

2011-03-11 Thread Sam Bernard
You will want to use the security component to make sure that pages are only 
accessed via ssl... The sslLink function will generate https links but it 
won't prevent people from going to the non secure version of the page.

Additionally, if it is only a few actions that you require to be secure, you 
can use .htaccess and mod_rewrite to force ssl on certain pages.

--
Sam Bernard
sambernard.net

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php