From a28f6bd8d0ea9aa4cf0d1d344ddba6da283e22bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Fri, 23 Feb 2024 10:42:53 +0100 Subject: [PATCH] Update integration_test.go --- pkg/client/integration_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/client/integration_test.go b/pkg/client/integration_test.go index 7d4cd9e..2f3bdbf 100644 --- a/pkg/client/integration_test.go +++ b/pkg/client/integration_test.go @@ -217,6 +217,7 @@ func RunAuthorizationCodeFlow(t *testing.T, opServer *httptest.Server, clientID, targetURL, []string{"openid", "email", "profile", "offline_access"}, rp.WithPKCE(cookieHandler), + rp.WithAuthStyle(oauth2.AuthStyleInHeader), rp.WithVerifierOpts( rp.WithIssuedAtOffset(5*time.Second), rp.WithSupportedSigningAlgorithms("RS256", "RS384", "RS512", "ES256", "ES384", "ES512"), @@ -307,6 +308,7 @@ func RunAuthorizationCodeFlow(t *testing.T, opServer *httptest.Server, clientID, }() require.Less(t, capturedW.Code, 400, "token exchange response code") // TODO: how to check the custom header was sent to the server? + // TODO: how to check the Autorization header was sent to the server? (AuthStyleInHeader) //nolint:bodyclose resp = capturedW.Result()