Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Apr 20, 2019
1 parent 6839abd commit 5d29165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ if [[ "$(hydra token introspect $userToken)" =~ "false" ]]; then
exit 1
fi

if [[ "$(curl http://localhost:4445/oauth2/auth/sessions/consent/the-subject)" =~ "the-subject" ]]; then
if [[ "$(curl http://localhost:4445/oauth2/auth/sessions/consent?subject=the-subject)" =~ "the-subject" ]]; then
echo "Consent session looks good"
else
echo "Checking consent session should show the-subject"
exit 1
fi

curl -X DELETE http://localhost:4445/oauth2/auth/sessions/consent/the-subject
curl -X DELETE http://localhost:4445/oauth2/auth/sessions/consent?subject=the-subject

if [[ "$(hydra token introspect $userToken)" =~ "true" ]]; then
echo "Token introspection should return false because the consent session was revoked"
Expand Down

0 comments on commit 5d29165

Please sign in to comment.