Subject: | Query Params not propagated to user_auth_endpoint |
Query parameters passed to a protected action are not propagated to the
user_auth_endpoint, and thus would be lost upon redirection.
I have attached a diff that adds query parameters to oauth_callback.
Please commit if this is an appropriate addition.
-micah
Subject: | OAuth.diff |
--- OAuth.pm 2011-12-22 13:22:32.000000000 +0000
+++ OAuth.pm.new 2011-12-22 13:09:08.000000000 +0000
@@ -54,7 +54,7 @@
request_method => 'GET',
signature_method => 'HMAC-SHA1',
oauth_version => '1.0a',
- callback => $c->uri_for( $c->action, $c->req->captures, @{ $c->req->args } )->as_string
+ callback => $c->uri_for( $c->action, $c->req->captures, @{ $c->req->args }, $c->req->query_params )->as_string
);
$c->log_debug( "authenticate() called from " . $c->request->uri ) if $self->debug;