(req *http.Request, claims jwt.MapClaims)
| 160 | } |
| 161 | |
| 162 | func (a authenticator) jwtSignRequest(req *http.Request, claims jwt.MapClaims) error { |
| 163 | auth, err := a.jwtSignatureFromClaims(claims) |
| 164 | if err != nil { |
| 165 | return fmt.Errorf("cannot make auth: %w", err) |
| 166 | } |
| 167 | req.Header.Add("Stream-Auth-Type", "jwt") |
| 168 | req.Header.Add("Authorization", auth) |
| 169 | return nil |
| 170 | } |
no test coverage detected