| 127 | |
| 128 | |
| 129 | class SimpleUser(BaseUser): |
| 130 | def __init__(self, username: str) -> None: |
| 131 | self.username = username |
| 132 | |
| 133 | @property |
| 134 | def is_authenticated(self) -> bool: |
| 135 | return True |
| 136 | |
| 137 | @property |
| 138 | def display_name(self) -> str: |
| 139 | return self.username |
| 140 | |
| 141 | |
| 142 | class UnauthenticatedUser(BaseUser): |