hbm
hbm copied to clipboard
how to get authorization.Requset.User?
Hi, I am trying to create an AuthZ/AuthN plugin that checks if a specific user can operator。
When I log the authorization.Requset.User, I get empty strings.
username := req.User
if len(username) == 0 {
username = "root"
}