I was doing research to see if Mayan supported 2FA. Was going to post a question on the forums but first I thought I would do quick look in the docs. Nothing out right in the documents showed that it did and some googlefu linked back to the old forums. I did do a search on documentation website and did find it in the release notes for v4.2
The notes say to:
To enable TOTP authentication, set `AUTHENTICATION_BACKEND` to: `mayan.apps.authentication_otp.authentication_backends.AuthenticationBackendModelUsernamePasswordTOTP` for username and TOTP login. For email and TOTP logins use `mayan.apps.authentication_otp.authentication_backends.AuthenticationBackendModelEmailPasswordTOTP`
I did this and restarted and now I do see the options to enable now.
But when I try and enable I get the Server Error screen. I tried to find a log file and found out the log file option was not enabled by default. Once I enabled the log file I did get the following error. While
tail -f /var/log/mayan/error.log 2023-02-11 23:07:09,664 mayan.apps.logging.middleware.error_logging <1605311> [ERROR] "process_exception() line 15 Exception caught by request middleware; <WSGIRequest: GET '/authentication_otp/otp/verify/ signed_secret=IlhKNlRZWlQ0TTdUQkNVUzZNVVVYU0lBNFdFQUdEUUJFIg%3A1pQyxZ%3Alr9n7KuM5FIxHnUHNrj5vr93UxLB82nZihJGtZb0f1Q'>, save() missing 1 required positional argument: 'stream'"
Full error message here on GitHub/Gist
Am I missing a step or is there an actual bug/error.