From 90e71eb6314de4d6f8c20d85ca3bdaf2b50e2f4a Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Tue, 5 Mar 2024 14:24:47 +0100 Subject: [PATCH] chore: synchronize workspaces --- oauth2/oauth2_auth_code_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oauth2/oauth2_auth_code_test.go b/oauth2/oauth2_auth_code_test.go index 69e9d42e427..274f70181b7 100644 --- a/oauth2/oauth2_auth_code_test.go +++ b/oauth2/oauth2_auth_code_test.go @@ -981,10 +981,10 @@ func TestAuthCodeWithDefaultStrategy(t *testing.T) { var hookReq hydraoauth2.TokenHookRequest require.NoError(t, json.NewDecoder(r.Body).Decode(&hookReq)) require.NotEmpty(t, hookReq.Session) - require.Equal(t, hookReq.Session.Extra, map[string]interface{}{"foo": "bar"}) + require.Equal(t, map[string]interface{}{"foo": "bar"}, hookReq.Session.Extra) require.NotEmpty(t, hookReq.Request) - require.ElementsMatch(t, hookReq.Request.GrantedAudience, []string{}) - require.Equal(t, hookReq.Request.Payload, map[string][]string{}) + require.ElementsMatch(t, []string{}, hookReq.Request.GrantedAudience) + require.Equal(t, map[string][]string{"grant_type": {"authorization_code"}}, hookReq.Request.Payload) claims := map[string]interface{}{ "hooked": true,