summaryrefslogtreecommitdiff
path: root/pkg/oidc/oidc_test.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-14 17:14:12 -0600
committermo khan <mo@mokhan.ca>2025-05-14 17:14:12 -0600
commit4a090d42089ded8ce38be51d08776131a6dd2e05 (patch)
tree2955e79404c1c7449bd847471690b545a5484e8c /pkg/oidc/oidc_test.go
parent7b74ddbe8478bbf901685cea7826d96f042c142e (diff)
refactor: remove unnecessary params from ctor
Diffstat (limited to 'pkg/oidc/oidc_test.go')
-rw-r--r--pkg/oidc/oidc_test.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkg/oidc/oidc_test.go b/pkg/oidc/oidc_test.go
index bb040a2..a3dc7e4 100644
--- a/pkg/oidc/oidc_test.go
+++ b/pkg/oidc/oidc_test.go
@@ -1,11 +1,9 @@
package oidc
import (
- "context"
"testing"
"github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/require"
)
func TestOpenID(t *testing.T) {
@@ -13,15 +11,14 @@ func TestOpenID(t *testing.T) {
defer srv.Close()
t.Run("GET /.well-known/openid-configuration", func(t *testing.T) {
- openID, err := New(
- context.Background(),
+ openID := New(
srv.Provider,
srv.MockOIDC.ClientID,
srv.MockOIDC.ClientSecret,
"https://example.com/oauth/callback",
)
- require.NoError(t, err)
assert.Equal(t, srv.AuthorizationEndpoint(), openID.Provider.Endpoint().AuthURL)
+ assert.Equal(t, srv.TokenEndpoint(), openID.Provider.Endpoint().TokenURL)
})
}