From 3a53366bf3c476497163c8e8a0b3fbe7bd40c869 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 14 May 2025 17:29:08 -0600 Subject: test: invline variable --- pkg/oidc/test_server.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'pkg') diff --git a/pkg/oidc/test_server.go b/pkg/oidc/test_server.go index 198076c..92bfe57 100644 --- a/pkg/oidc/test_server.go +++ b/pkg/oidc/test_server.go @@ -34,17 +34,15 @@ func NewTestServer(t *testing.T) *TestServer { require.NoError(t, err) }) - config := &oauth2.Config{ - ClientID: srv.Config().ClientID, - ClientSecret: srv.Config().ClientSecret, - RedirectURL: "https://example.com/oauth/callback", - Endpoint: provider.Endpoint(), - Scopes: []string{oidc.ScopeOpenID, "profile", "email"}, - } - return &TestServer{ srv, - config, + &oauth2.Config{ + ClientID: srv.MockOIDC.ClientID, + ClientSecret: srv.MockOIDC.ClientSecret, + RedirectURL: "https://example.com/oauth/callback", + Endpoint: provider.Endpoint(), + Scopes: []string{oidc.ScopeOpenID, "profile", "email"}, + }, provider, t, } -- cgit v1.2.3