Skip to content

Commit f63ccbc

Browse files
committed
authorize: Add oauth_token to error-redirect
The token parameter was missing despite we promised to include it in the docs. Fixes issue 331.
1 parent 778e617 commit f63ccbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

okapi/views/apps/authorize.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ public static function call()
137137
# back to the Consumer application with an error.
138138

139139
if ($token['callback']) {
140-
return new OkapiRedirectResponse($token['callback'].$callback_concat_char."error=access_denied");
140+
return new OkapiRedirectResponse(
141+
$token['callback'].$callback_concat_char."error=access_denied".
142+
"&oauth_token=".$token['key']
143+
);
141144
} else {
142145
# Consumer did not provide a callback URL (oauth_callback=oob).
143146
# We'll have to redirect to the Opencaching main page then...

0 commit comments

Comments
 (0)