You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/identityserver/aspnet-identity/schemes.md
+4-10Lines changed: 4 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,10 @@ Besides the main application cookie, IdentityServer uses other schemes for speci
52
52
53
53
### External Authentication (e.g., Google, OIDC)
54
54
55
-
When a user signs in with an external provider (like Google or another OIDC provider), the result of that remote authentication is temporarily stored in an "external" cookie. This allows your login logic to read the claims from the external provider before fully signing the user into your main local session.
55
+
When a user signs in with an external provider (like Google or another OIDC provider), the result of that remote authentication is temporarily stored in an "external" cookie.
56
+
This allows your login logic to read the claims from the external provider before fully signing the user into your main local session.
-**With ASP.NET Identity:**`"Identity.External"` (Constant: `IdentityConstants.ExternalScheme`)
58
+
IdentityServer always uses the `"idsrv.external"` scheme here, available in the `IdentityServerConstants.ExternalCookieAuthenticationScheme` constant.
59
59
60
60
### Check Session Cookie
61
61
@@ -64,13 +64,7 @@ The [User Session Service](/identityserver/reference/services/user-session-servi
64
64
65
65
-**Default Name:**`"idsrv.session"` (Constant: `IdentityServerConstants.DefaultCheckSessionCookieName`). This often remains consistent, but verify your specific configuration.
66
66
67
-
## Summary Table
68
-
69
-
| Feature | Standalone IdentityServer | With ASP.NET Identity |
Note this cookie is not marked as `HttpOnly`, so it can be accessed in client-side code. The JavaScript code that is required to check user sessions in the background also requires access to this cookie, and needs it to be `HttpOnly`.
0 commit comments