removeServiceNameFromJWTURI removes RPC service name from URI.
(uri string)
| 59 | |
| 60 | // removeServiceNameFromJWTURI removes RPC service name from URI. |
| 61 | func removeServiceNameFromJWTURI(uri string) (string, error) { |
| 62 | parsed, err := url.Parse(uri) |
| 63 | if err != nil { |
| 64 | return "", err |
| 65 | } |
| 66 | parsed.Path = "/" |
| 67 | return parsed.String(), nil |
| 68 | } |
| 69 | |
| 70 | type jwtAccess struct { |
| 71 | jsonKey []byte |