Fix audience URL

This commit is contained in:
Eelco Dolstra 2013-07-09 14:05:04 +02:00
parent 1db9381473
commit 486a844866

View file

@ -75,7 +75,7 @@ sub persona_login :Path('/persona-login') Args(0) {
my $response = $ua->post(
'https://verifier.login.persona.org/verify',
{ assertion => $assertion,
audience => "http://localhost:3000/"
audience => $c->uri_for('/')
});
error($c, "Did not get a response from Persona.") unless $response->is_success;