MCPcopy
hub / github.com/encode/starlette / SimpleUser

Class SimpleUser

starlette/authentication.py:129–139  ·  starlette/authentication.py::SimpleUser

Source from the content-addressed store, hash-verified

127
128
129class 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
142class UnauthenticatedUser(BaseUser):

Callers 1

authenticateMethod · 0.90

Calls

no outgoing calls

Tested by 1

authenticateMethod · 0.72