werkzeug.Request.remote_user

Request.remote_user

If the server supports user authentication, and the script is protected, this attribute contains the username the user has authenticated as.