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

Method UpdateRefreshClaims

coderd/coderdtest/oidctest/idp.go:1495–1498  ·  view source on GitHub ↗

UpdateRefreshClaims allows the caller to change what claims are returned for a given refresh token. By default, all refreshes use the same claims as the original IDToken issuance.

(refreshToken string, claims jwt.MapClaims)

Source from the content-addressed store, hash-verified

1493// for a given refresh token. By default, all refreshes use the same claims as
1494// the original IDToken issuance.
1495func (f *FakeIDP) UpdateRefreshClaims(refreshToken string, claims jwt.MapClaims) {
1496 // no mutex because it's a sync.Map
1497 f.refreshIDTokenClaims.Store(refreshToken, claims)
1498}
1499
1500// SetRedirect is required for the IDP to know where to redirect and call
1501// Coderd.

Callers 1

ForceRefreshMethod · 0.80

Calls 1

StoreMethod · 0.45

Tested by

no test coverage detected