We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentd4d8b1c commitaba07a5Copy full SHA for aba07a5
coderd/coderdtest/oidctest/idp.go
@@ -429,7 +429,7 @@ func (f *FakeIDP) LoginWithClient(t testing.TB, client *codersdk.Client, idToken
429
// ExternalLogin does the oauth2 flow for external auth providers. This requires
430
// an authenticated coder client.
431
func (f*FakeIDP)ExternalLogin(t testing.TB,client*codersdk.Client,opts...func(r*http.Request)) {
432
-coderOauthURL,err:=client.URL.Parse("/external-auth/callback")
+coderOauthURL,err:=client.URL.Parse(fmt.Sprintf("/external-auth/%s/callback",f.externalProviderID))
433
require.NoError(t,err)
434
f.SetRedirect(t,coderOauthURL.String())
435