aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2020-05-13 16:42:04 +0100
committerDave Arter <davea@mysociety.org>2020-07-02 14:38:50 +0100
commit7e4ebd6568a836683f5f374ce6f0d9ed97d38c54 (patch)
treee16e4dfec760bd5f7924dcc27b58ef310c02f847
parentc505cbca2576f9e658692d8e1c512f645069985a (diff)
Include redirect URI when fetching OIDC access token
-rw-r--r--perllib/FixMyStreet/App/Controller/Auth/Social.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Auth/Social.pm b/perllib/FixMyStreet/App/Controller/Auth/Social.pm
index 2468cfad2..c9e0381a4 100644
--- a/perllib/FixMyStreet/App/Controller/Auth/Social.pm
+++ b/perllib/FixMyStreet/App/Controller/Auth/Social.pm
@@ -290,6 +290,7 @@ sub oidc_callback: Path('/auth/OIDC') : Args(0) {
eval {
$id_token = $oidc->get_access_token(
code => $c->get_param('code'),
+ redirect_uri => $c->uri_for('/auth/OIDC')
);
};
if ($@) {