File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,7 @@ Other required fields will be filled with `None`.
147
147
Identity Model
148
148
^^^^^^^^^^^^^^
149
149
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.
152
151
153
152
It has the following fields:
154
153
@@ -179,6 +178,20 @@ color
179
178
such as for collaboration cursors.
180
179
May be `null ` if unavailable.
181
180
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
+
182
195
Authorization
183
196
*************
184
197
You can’t perform that action at this time.
0 commit comments