Skip to content

Commit

Permalink
Add authentication to thirdparty bridge APIs: Check access_token (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot authored May 24, 2022
1 parent 32544b4 commit ea39901
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/60app-services/05lookup3pe.pl
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,15 @@ sub stub_empty_result
sub { 1 }
)->then( sub {
my ( $request ) = @_;

my $access_token = $appserv1->info->hs2as_token;

assert_deeply_eq(
{ $request->query_form },
{
field1 => "ONE",
field2 => "TWO",
access_token => $access_token,
},
'fields in received AS request'
);
Expand Down Expand Up @@ -209,11 +212,13 @@ sub stub_empty_result
sub { 1 }
)->then( sub {
my ( $request ) = @_;
my $access_token = $appserv1->info->hs2as_token;

assert_deeply_eq(
{ $request->query_form },
{
field3 => "THREE",
access_token => $access_token,
},
'fields in received AS request'
);
Expand Down

0 comments on commit ea39901

Please sign in to comment.