summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-14 17:29:08 -0600
committermo khan <mo@mokhan.ca>2025-05-14 17:29:08 -0600
commit3a53366bf3c476497163c8e8a0b3fbe7bd40c869 (patch)
treed2e46aeb729acf4d594726f725b12944dcb4fba8 /pkg
parent89e982185563ef9372db605b0dbf2482e311d0d9 (diff)
test: invline variable
Diffstat (limited to 'pkg')
-rw-r--r--pkg/oidc/test_server.go16
1 files changed, 7 insertions, 9 deletions
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,
}