MCPcopy Index your code
hub / github.com/coder/coder / SetRedirect

Method SetRedirect

coderd/coderdtest/oidctest/idp.go:1502–1507  ·  view source on GitHub ↗

SetRedirect is required for the IDP to know where to redirect and call Coderd.

(t testing.TB, u string)

Source from the content-addressed store, hash-verified

1500// SetRedirect is required for the IDP to know where to redirect and call
1501// Coderd.
1502func (f *FakeIDP) SetRedirect(t testing.TB, u string) {
1503 t.Helper()
1504 f.locked.MutateConfig(func(cfg *oauth2.Config) {
1505 cfg.RedirectURL = u
1506 })
1507}
1508
1509// SetCoderdCallback is optional and only works if not using the IsServing.
1510// It will setup a fake "Coderd" for the IDP to call when the IDP redirects

Callers 2

LoginWithClientMethod · 0.95
ExternalLoginMethod · 0.95

Calls 2

MutateConfigMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected