| 1668 | } |
| 1669 | |
| 1670 | func (f *FakeIDP) OIDCConfigSkipIssuerChecks(t testing.TB, scopes []string, opts ...func(cfg *coderd.OIDCConfig)) *coderd.OIDCConfig { |
| 1671 | ctx := oidc.InsecureIssuerURLContext(context.Background(), f.locked.Issuer()) |
| 1672 | |
| 1673 | return f.internalOIDCConfig(ctx, t, scopes, func(config *oidc.Config) { |
| 1674 | config.SkipIssuerCheck = true |
| 1675 | }, opts...) |
| 1676 | } |
| 1677 | |
| 1678 | func (f *FakeIDP) OIDCConfig(t testing.TB, scopes []string, opts ...func(cfg *coderd.OIDCConfig)) *coderd.OIDCConfig { |
| 1679 | return f.internalOIDCConfig(context.Background(), t, scopes, nil, opts...) |