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

Function WithMutateToken

coderd/coderdtest/oidctest/idp.go:309–313  ·  view source on GitHub ↗

WithExtra returns extra fields that be accessed on the returned Oauth Token. These extra fields can override the default fields (id_token, access_token, etc).

(mutateToken func(token map[string]interface{}))

Source from the content-addressed store, hash-verified

307// WithExtra returns extra fields that be accessed on the returned Oauth Token.
308// These extra fields can override the default fields (id_token, access_token, etc).
309func WithMutateToken(mutateToken func(token map[string]interface{})) func(*FakeIDP) {
310 return func(f *FakeIDP) {
311 f.hookMutateToken = mutateToken
312 }
313}
314
315func WithCustomClientAuth(hook func(t testing.TB, req *http.Request) (url.Values, error)) func(*FakeIDP) {
316 return func(f *FakeIDP) {

Callers 1

TestRefreshTokenFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestRefreshTokenFunction · 0.74