mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

"WithRoot" is only used within local node, and "AuthInfoFromCtx" expects token from incoming context. Embed token with "NewIncomingContext" so that token can be found in "AuthInfoFromCtx". Signed-off-by: Gyuho Lee <gyuhox@gmail.com>