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

Function WithMiddlewares

coderd/coderdtest/oidctest/idp.go:258–262  ·  view source on GitHub ↗
(mws ...func(http.Handler) http.Handler)

Source from the content-addressed store, hash-verified

256}
257
258func WithMiddlewares(mws ...func(http.Handler) http.Handler) func(*FakeIDP) {
259 return func(f *FakeIDP) {
260 f.middlewares = append(f.middlewares, mws...)
261 }
262}
263
264func WithAccessTokenJWTHook(hook func(email string, exp time.Time) jwt.MapClaims) func(*FakeIDP) {
265 return func(f *FakeIDP) {

Callers 3

TestGithubRateLimitsFunction · 0.92
TestConstantQueryParamsFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestGithubRateLimitsFunction · 0.74
TestConstantQueryParamsFunction · 0.74