Skip to content

Commit 3ba9ac9

Browse files
hbcarlosZsailer
andauthored
Extends the IP documentation (#1258)Co-authored-by: Zachary Sailer <[email protected]>
* Extends the IP documentation * Update docs/source/operators/security.rst --------- Co-authored-by: Zachary Sailer <[email protected]>
1 parent 934fb5b commit 3ba9ac9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

docs/source/operators/security.rst

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ Other required fields will be filled with `None`.
147147
Identity Model
148148
^^^^^^^^^^^^^^
149149

150-
The identity model is the model accessed at `/api/me`,
151-
and describes the currently authenticated user.
150+
The identity model is the model accessed at `/api/me`, and describes the currently authenticated user.
152151

153152
It has the following fields:
154153

@@ -179,6 +178,20 @@ color
179178
such as for collaboration cursors.
180179
May be `null` if unavailable.
181180

181+
182+
The default implementation of the identity provider is stateless, meaning it doesn't store user information
183+
on the server side. Instead, it utilizes session cookies to generate and store random user information on the
184+
client side.
185+
186+
When a user logs in or authenticates, the server generates a session cookie that is stored on the client side.
187+
This session cookie is used to keep track of the identity model between requests. If the client does not
188+
support session cookies or fails to send the cookie in subsequent requests, the server will treat each request
189+
as coming from a new anonymous user and generate a new set of random user information for each request.
190+
191+
To ensure proper functionality of the identity model and to maintain user context between requests, it's
192+
important for clients to support session cookies and send it in subsequent requests. Failure to do so may
193+
result in the server generating a new anonymous user for each request, leading to loss of user context.
194+
182195
Authorization
183196
*************
184197

0 commit comments

Comments
 (0)