diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-17 13:28:08 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-17 13:28:08 -0600 |
| commit | b1b0c09fff9fe20aeb3146658d3cfd8f83c900b0 (patch) | |
| tree | 378a5cd0730bd601d7322740de0db4bd9fdf7cb3 /pkg/oidc | |
| parent | 7a1f5be3e1884679425d9182179182a1765a6a6f (diff) | |
test: remove the test oidc server
Diffstat (limited to 'pkg/oidc')
| -rw-r--r-- | pkg/oidc/oidc_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) }) } |
