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)
| 1493 | // for a given refresh token. By default, all refreshes use the same claims as |
| 1494 | // the original IDToken issuance. |
| 1495 | func (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. |