load key for verification
(rawKey []byte)
| 165 | |
| 166 | // load key for verification |
| 167 | func loadPublicKey(rawKey []byte) jwt.Keyfunc { |
| 168 | return func(token *jwt.Token) (interface{}, error) { |
| 169 | return jwt.ParseECPublicKeyFromPEM(rawKey) |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | // Reimplementation of the kratos jwt middleware suited as stream interceptor |
| 174 | func jwtAuthFunc(keyFunc jwt.Keyfunc, signingMethod jwt.SigningMethod) grpc_auth.AuthFunc { |
no outgoing calls
no test coverage detected