Skip to content

Commit

Permalink
Introduce filter_by instead of authorized_only
Browse files Browse the repository at this point in the history
Change-Id: Ifc3e24147da5ebaf66215939d26812bf97edc3e0
  • Loading branch information
hebasta committed Sep 2, 2024
1 parent b92fbb6 commit 0543670
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Kalamar/Plugin/Auth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ sub register {
return $c->korap_request(post => $r_url, {} => form => {
super_client_id => $client_id,
super_client_secret => $client_secret,
authorized_only => 'no'
filter_by => 'owned_only'
})->then(
sub {
my $tx = shift;
Expand Down
3 changes: 3 additions & 0 deletions t/server/mock.pl
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,9 @@
$v->required('super_client_id');
$v->required('super_client_secret');

$v->optional('filter_by' );
$v->optional('authorized_only' );

if ($v->has_error) {
return $c->render(
json => [],
Expand Down

0 comments on commit 0543670

Please sign in to comment.