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

Function WithStaticCredentials

coderd/coderdtest/oidctest/idp.go:296–305  ·  view source on GitHub ↗
(id, secret string)

Source from the content-addressed store, hash-verified

294}
295
296func WithStaticCredentials(id, secret string) func(*FakeIDP) {
297 return func(f *FakeIDP) {
298 if id != "" {
299 f.clientID = id
300 }
301 if secret != "" {
302 f.clientSecret = secret
303 }
304 }
305}
306
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).

Callers 2

TestRevokeTokenFunction · 0.92
RunIDPFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestRevokeTokenFunction · 0.74