Skip to content

how to get authorization.Requset.User? #44

@hi-opensource

Description

@hi-opensource
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"
   }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions