From 70412cbec32d8bc4bcaf6fabb0858fd56a808eab Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Wed, 14 Mar 2018 14:57:31 +0000 Subject: [PATCH] Bug 20402: Follow-up to correct uninitialized failures Added type => 'access' to the token request line in Koha/REST/V1/OAuth.pm based on my quick skim of /usr/share/perl5/Net/OAuth2/AuthorizationServer/Defaults.pm which was complaining, and seemed to allow valid values of 'auth', 'refresh', and 'access'. --- Koha/REST/V1/OAuth.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/REST/V1/OAuth.pm b/Koha/REST/V1/OAuth.pm index 9fc61ec..d9e8438 100644 --- a/Koha/REST/V1/OAuth.pm +++ b/Koha/REST/V1/OAuth.pm @@ -30,6 +30,7 @@ sub token { my $token = $grant->token( client_id => $client_id, scopes => $scopes, + type => 'access', ); # store access token -- 2.1.4