<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
You can use Catalyst::Plugin::RequireSSL to force https.<br>
<br>
Although I think https should be used by your method if that's what the
user access the app with.<br>
<pre class="moz-signature" cols="72">

Christiaan</pre>
<br>
<br>
Octavian Rasnita schreef:
<blockquote cite="mid:73DC9B56499B46A7B71335BF37EB6AAA@teddy11"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.5921" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">Hi,</font></div>
  <div> </div>
  <div><font face="Arial" size="2">In a catalyst action accessed using
https I do:</font></div>
  <div> </div>
  <div><font face="Arial" size="2">if ($c-&gt;authenticate({username
=&gt; $username, password =&gt; $password, active =&gt; 1})) {<br>
  $c-&gt;res-&gt;redirect($c-&gt;uri_for_action("/index"));<br>
}<br>
  </font></div>
  <div><font face="Arial" size="2">It redirects to / URI of the site,
but using http, not https as in the request for the current page.</font></div>
  <div> </div>
  <div><font face="Arial" size="2">Isn't $c-&gt;uri_for_action() able
to see that the current URI uses https and continue to use it or this
revert to http is intentional?</font></div>
  <div> </div>
  <div><font face="Arial" size="2">Thanks.</font></div>
  <div><font face="Arial" size="2"> </font></div>
  <div><font face="Arial" size="2">--<br>
Octavian<br>
  </font></div>
  <br>
  <br>
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4973 (20100325) __________<br>
  <br>
The message was checked by ESET NOD32 Antivirus.<br>
  <br>
  <a moz-do-not-send="true" href="http://www.eset.com">http://www.eset.com</a><br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
List: <a class="moz-txt-link-abbreviated" href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a>
Listinfo: <a class="moz-txt-link-freetext" href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a>
Searchable archive: <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a>
Dev site: <a class="moz-txt-link-freetext" href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a>
  </pre>
</blockquote>
</body>
</html>