(claims jwt.MapClaims)
| 147 | } |
| 148 | |
| 149 | func (a authenticator) jwtSignatureFromClaims(claims jwt.MapClaims) (string, error) { |
| 150 | token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims) |
| 151 | return token.SignedString([]byte(a.secret)) |
| 152 | } |
| 153 | |
| 154 | func (a authenticator) jwtFeedClaims(resource resource, action action, feedID string) jwt.MapClaims { |
| 155 | return jwt.MapClaims{ |
no outgoing calls
no test coverage detected