Subject: | Ability to change return_to url |
There are a problem in my project - it works under SSI include. And $c-
Show quoted text
>request->uri is not valid return URI. I want to set uri to correct (in
my project) value and have no ability to do this. Can you apply my
patch, which allows to set current URL at ->authenticate method?
Here is the patch:
===================================================================
--- lib/Catalyst/Authentication/Credential/OpenID.pm (revision 12473)
+++ lib/Catalyst/Authentication/Credential/OpenID.pm (working copy)
@@ -84,7 +84,7 @@
if ( $claimed_uri )
{
- my $current = $c->uri_for($c->req->uri->path); # clear
query/fragment...
+ my $current = $authinfo->{current_url} || $c->uri_for($c->req-
Show quoted text>uri->path); # clear query/fragment...
my $identity = $csr->claimed_identity($claimed_uri);
unless ( $identity )