feat(api): declare identity contract for registration, verification, and sessions
This commit is contained in:
1 parent
197661145e
commit
653f3775f8
86 files changed
+11826
-148
No files matched your search
@@ -17,3 +17,39 @@ RetryAfter:
|
||||
minimum: 0
|
||||
maximum: 86400
|
||||
example: 30
|
||||
SessionCookieSet:
|
||||
description: >-
|
||||
Sets the session cookie `__Host-lincodex_session` with an opaque random
|
||||
value and the attributes `Path=/; Secure; HttpOnly; SameSite=Strict` and
|
||||
no Domain. The `__Host-` prefix makes the browser reject the cookie
|
||||
without Secure and Path=/ or with a Domain. Max-Age equals the remaining
|
||||
absolute session lifetime. The value is never readable by scripts or present in a
|
||||
body.
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 4096
|
||||
pattern: "^__Host-lincodex_session="
|
||||
example: __Host-lincodex_session=opaque-session-value; Path=/; Max-Age=604800; Secure; HttpOnly; SameSite=Strict
|
||||
SessionCookieCleared:
|
||||
description: >-
|
||||
Removes the session cookie with an empty value, `Max-Age=0`, and the
|
||||
same attributes it was set with.
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 4096
|
||||
pattern: "^__Host-lincodex_session="
|
||||
example: __Host-lincodex_session=; Path=/; Max-Age=0; Secure; HttpOnly; SameSite=Strict
|
||||
CacheControlNoStore:
|
||||
description: >-
|
||||
`no-store`: the response carries account or session data that browsers
|
||||
and intermediaries must not keep.
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
enum:
|
||||
- no-store
|
||||
example: no-store
|
||||
Reference in new issue
Block a user