Skip to content

Commit

Permalink
Merge pull request #452 from DuendeSoftware/anders/Serversidesessions…
Browse files Browse the repository at this point in the history
…-props

Authprops can store custom data in server side sessions
  • Loading branch information
brockallen authored Mar 21, 2024
2 parents 8ba178d + 7021efa commit 39fbdc1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions IdentityServer/v7/docs/content/ui/server_side_sessions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ When using *AddServerSideSessions*, this call needs to come after any custom *IR

### Data stored server-side

The data stored for the user session is the data contained in the ASP.NET Core *AuthenticationTicket* class.
This data will be serialized and protected using ASP.NET Core's [data protection]({{<ref "/deployment/data_protection">}}) feature so as to protect any user PII.
Some of the values from the user's session are extracted and used as indices in the store so that specific sessions can be queried.
These values are the user's:
The data stored for the user session is the data contained in the ASP.NET Core *AuthenticationTicket* class. This includes
all claims and the *AuthenticationProperties.Items* collection. The *Items* can be used to store any custom (string)
data. The *AuthenticationProperties* is included in the call to *SignInAsync* that establishes the user session in the UI code.

This data will be serialized and protected using ASP.NET Core's [data protection]({{<ref "/deployment/data_protection">}}) feature to protect any user PII from being directly readable in the data store.
To allow querying some of the values from the user's session are extracted and used as indices in the store. These values are the user's:

* subject identifier (the *sub* claim value)
* session identifier (the *sid* claim value)
Expand Down

0 comments on commit 39fbdc1

Please sign in to comment.