From b1b0c09fff9fe20aeb3146658d3cfd8f83c900b0 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 17 Apr 2025 13:28:08 -0600 Subject: test: remove the test oidc server --- pkg/oidc/oidc_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/oidc') diff --git a/pkg/oidc/oidc_test.go b/pkg/oidc/oidc_test.go index b7715cf..3a0daf0 100644 --- a/pkg/oidc/oidc_test.go +++ b/pkg/oidc/oidc_test.go @@ -11,12 +11,12 @@ import ( func TestOpenID(t *testing.T) { t.Run("GET /.well-known/openid-configuration", func(t *testing.T) { - srv := test.OIDCServer() + srv := test.NewOIDCServer(t) defer srv.Close() - openID, err := New(context.Background(), srv.URL, "client_id", "client_secret", "https://example.com/oauth/callback") + openID, err := New(context.Background(), srv.Issuer(), "client_id", "client_secret", "https://example.com/oauth/callback") require.NoError(t, err) - assert.Equal(t, srv.URL+"/oauth/authorize", openID.Provider.Endpoint().AuthURL) + assert.Equal(t, srv.AuthorizationEndpoint(), openID.Provider.Endpoint().AuthURL) }) } -- cgit v1.2.3