Skip to content

Commit 41ae6cd

Browse files
committed
fix url
1 parent cf85814 commit 41ae6cd

File tree

1 file changed

+1
-1
lines changed
  • coderd/coderdtest/oidctest

1 file changed

+1
-1
lines changed

coderd/coderdtest/oidctest/idp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ func (f *FakeIDP) LoginWithClient(t testing.TB, client *codersdk.Client, idToken
429429
// ExternalLogin does the oauth2 flow for external auth providers. This requires
430430
// an authenticated coder client.
431431
func (f *FakeIDP) ExternalLogin(t testing.TB, client *codersdk.Client, opts ...func(r *http.Request)) {
432-
coderOauthURL, err := client.URL.Parse("/external-auth/callback")
432+
coderOauthURL, err := client.URL.Parse(fmt.Sprintf("/external-auth/%s/callback", f.externalProviderID))
433433
require.NoError(t, err)
434434
f.SetRedirect(t, coderOauthURL.String())
435435

0 commit comments

Comments
 (0)