[Catalyst] Catalyst Redirect to https

Christiaan Kras c.kras at pcc-online.net
Thu Mar 25 17:58:11 GMT 2010


You can use Catalyst::Plugin::RequireSSL to force https.

Although I think https should be used by your method if that's what the =

user access the app with.


Christiaan



Octavian Rasnita schreef:
> Hi,
>  =

> In a catalyst action accessed using https I do:
>  =

> if ($c->authenticate({username =3D> $username, password =3D> $password, =

> active =3D> 1})) {
>   $c->res->redirect($c->uri_for_action("/index"));
> }
> It redirects to / URI of the site, but using http, not https as in the =

> request for the current page.
>  =

> Isn't $c->uri_for_action() able to see that the current URI uses https =

> and continue to use it or this revert to http is intentional?
>  =

> Thanks.
>  =

> --
> Octavian
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus =

> signature database 4973 (20100325) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.u=
k/
> Dev site: http://dev.catalyst.perl.org/
>   =

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100325/5a11b=
0ab/attachment.htm


More information about the Catalyst mailing list