SetRedirect is required for the IDP to know where to redirect and call Coderd.
(t testing.TB, u string)
| 1500 | // SetRedirect is required for the IDP to know where to redirect and call |
| 1501 | // Coderd. |
| 1502 | func (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 |
no test coverage detected