hbm icon indicating copy to clipboard operation
hbm copied to clipboard

how to get authorization.Requset.User?

Open hi-opensource opened this issue 1 year ago • 0 comments

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"
	}

hi-opensource avatar Jan 29 '24 03:01 hi-opensource