diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-14 17:05:41 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-14 17:05:41 -0600 |
| commit | 7b74ddbe8478bbf901685cea7826d96f042c142e (patch) | |
| tree | 4ced3a6a08af63ffbe89f66b9d5e4242140488b9 /pkg/oidc/oidc_test.go | |
| parent | 1f8849d5e9c69e0f489fcc5a4f638dde8c6b20db (diff) | |
feat: provider a fallback provider that defaults to hard-coded paths
Diffstat (limited to 'pkg/oidc/oidc_test.go')
| -rw-r--r-- | pkg/oidc/oidc_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/oidc/oidc_test.go b/pkg/oidc/oidc_test.go index 47a58ba..bb040a2 100644 --- a/pkg/oidc/oidc_test.go +++ b/pkg/oidc/oidc_test.go @@ -13,7 +13,13 @@ func TestOpenID(t *testing.T) { defer srv.Close() t.Run("GET /.well-known/openid-configuration", func(t *testing.T) { - openID, err := New(context.Background(), srv.Issuer(), "client_id", "client_secret", "https://example.com/oauth/callback") + openID, err := New( + context.Background(), + 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) |
