()
| 12 | type unsafeNoneMagicConstant string |
| 13 | |
| 14 | func init() { |
| 15 | SigningMethodNone = &signingMethodNone{} |
| 16 | NoneSignatureTypeDisallowedError = newError("'none' signature type is not allowed", ErrTokenUnverifiable) |
| 17 | |
| 18 | RegisterSigningMethod(SigningMethodNone.Alg(), func() SigningMethod { |
| 19 | return SigningMethodNone |
| 20 | }) |
| 21 | } |
| 22 | |
| 23 | func (m *signingMethodNone) Alg() string { |
| 24 | return "none" |
nothing calls this directly
no test coverage detected