Skip to content

Commit

Permalink
refactor(test): add missing logout test case
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed May 22, 2024
1 parent 14fa141 commit c49a857
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/oidc-client/src/logout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe('Logout test suite', () => {
{logout_tokens_to_invalidate:['refresh_token'],extras:null, expectedResults: ["token=abdc&token_type_hint=refresh_token&client_id=interactive.public.short"], expectedFinalUrl},
{logout_tokens_to_invalidate:['access_token'],extras:null, expectedResults: ["token=abcd&token_type_hint=access_token&client_id=interactive.public.short"], expectedFinalUrl},
{logout_tokens_to_invalidate:[],extras:null, expectedResults: [], expectedFinalUrl},
{logout_tokens_to_invalidate:[],extras: {"id_token_hint": undefined}, expectedResults: [], expectedFinalUrl: "http://api/connect/endsession?post_logout_redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Flogged_out" },
{logout_tokens_to_invalidate:[],extras: {"no_reload:oidc":"true"}, expectedResults: [], expectedFinalUrl:""},
{logout_tokens_to_invalidate:['refresh_token'],extras:{"client_secret:revoke_refresh_token":"secret"}, expectedResults: ["token=abdc&token_type_hint=refresh_token&client_id=interactive.public.short&client_secret=secret"], expectedFinalUrl},
{logout_tokens_to_invalidate:['access_token'],extras:{"client_secret:revoke_access_token":"secret"}, expectedResults: ["token=abcd&token_type_hint=access_token&client_id=interactive.public.short&client_secret=secret"], expectedFinalUrl},
Expand Down

0 comments on commit c49a857

Please sign in to comment.