ruvnet/RuView · error · AuthenticationError

User account is disabled

Error message

User account is disabled

What it means

Error "User account is disabled" thrown in ruvnet/RuView.

Source

Thrown at archive/v1/src/middleware/auth.py:273

            if scheme.lower() != "bearer":
                raise AuthenticationError("Invalid authentication scheme")
        except ValueError:
            raise AuthenticationError("Invalid authorization header format")
        
        # Verify token
        try:
            payload = self.token_manager.verify_token(token)
            username = payload.get("sub")
            if not username:
                raise AuthenticationError("Invalid token payload")
            
            # Get user info
            user = self.user_manager.get_user(username)
            if not user:
                raise AuthenticationError("User not found")
            
            if not user.get("is_active", False):
                raise AuthenticationError("User account is disabled")
            
            # Return user info without sensitive data
            return {
                "username": user["username"],
                "email": user["email"],
                "roles": user["roles"],
                "is_active": user["is_active"],
            }
            
        except AuthenticationError:
            raise
        except Exception as e:
            logger.error(f"Token verification error: {e}")
            raise AuthenticationError("Token verification failed")
    
    def _requires_auth(self, request: Request) -> bool:
        """Check if the request requires authentication."""
        # All API endpoints require authentication by default

View on GitHub (pinned to 4685618388)

When it happens

Trigger: Thrown at archive/v1/src/middleware/auth.py:273 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/RuView@4685618388 (2026-08-16). Data as JSON: /api/errors/43656173d2ca3c52. Report an issue: GitHub.