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

Function WithDynamicUserInfo

coderd/coderdtest/oidctest/idp.go:363–367  ·  view source on GitHub ↗
(userInfoFunc func(email string) (jwt.MapClaims, error))

Source from the content-addressed store, hash-verified

361}
362
363func WithDynamicUserInfo(userInfoFunc func(email string) (jwt.MapClaims, error)) func(*FakeIDP) {
364 return func(f *FakeIDP) {
365 f.hookUserInfo = userInfoFunc
366 }
367}
368
369// WithServing makes the IDP run an actual http server.
370func WithServing() func(*FakeIDP) {

Callers 1

TestRefreshTokenFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestRefreshTokenFunction · 0.74