Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api-spec): describe remember_me action #112

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions openapi-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,25 @@ components:
- "password_recovery"
inputs:
$ref: "#/components/schemas/InputsPasswordRecovery"
ActionRememberMe:
description: |
This action determines whether a session cookie or a persistent cookie is issued on flow success.

- If the `remember_me` input is set to `true`, the flow response on flow success contains a `Set-Cookie` header
with a persistent cookie and an `X-Session-Retention` header with a `persistent` value.
- If the `remember_me` input is set to `false`, the flow response on flow success contains a `Set-Cookie` header
with a session cookie and an `X-Session-Retention` header with a `session` value.

The action is only present if the tenant's cookie retention type is set to 'prompt'.
allOf:
- $ref: "#/components/schemas/Action"
- type: object
properties:
action:
enum:
- "remember_me"
inputs:
$ref: "#/components/schemas/InputsRememberMe"
ActionThirdPartyOauth:
description: |
Initialize a third party sign-up/sign-in by specifying the `provider` (it must be enabled and configured at the
Expand Down Expand Up @@ -650,6 +669,8 @@ components:
$ref: "#/components/schemas/ActionWebauthnVerifyAssertionResponse"
thirdparty_oauth:
$ref: "#/components/schemas/ActionThirdPartyOauth"
remember_me:
$ref: "#/components/schemas/ActionRememberMe"
ActionsLoginMethodChooser:
type: object
properties:
Expand Down Expand Up @@ -828,6 +849,8 @@ components:
$ref: "#/components/schemas/ActionRegisterLoginIdentifier"
thirdparty_oauth:
$ref: "#/components/schemas/ActionThirdPartyOauth"
remember_me:
$ref: "#/components/schemas/ActionRememberMe"
ActionsThirdParty:
type: object
properties:
Expand Down Expand Up @@ -1107,6 +1130,19 @@ components:
default: true
hidden:
default: true
InputRememberMe:
allOf:
- $ref: "#/components/schemas/Input"
- type: object
properties:
name:
enum:
- "remember_me"
type:
enum:
- "boolean"
required:
default: true
InputSecurityKeyID:
allOf:
- $ref: "#/components/schemas/Input"
Expand Down Expand Up @@ -1398,6 +1434,16 @@ components:
type: string
additionalProperties: false
minProperties: 1
InputDataRememberMe:
description: Input data for the `remember_me` action.
title: RememberMe
type: object
properties:
remember_me:
type: boolean
required:
- remember_me
additionalProperties: false
InputDataRegisterPassword:
description: Input data for the `register_password` action.
title: RegisterPassword
Expand Down Expand Up @@ -1626,6 +1672,11 @@ components:
properties:
new_password:
$ref: "#/components/schemas/InputNewPassword"
InputsRememberMe:
type: object
properties:
remember_me:
$ref: "#/components/schemas/InputRememberMe"
InputsSecurityKeyDelete:
type: object
properties:
Expand Down Expand Up @@ -2594,6 +2645,7 @@ components:
X-Session-Retention:
type: string
enum:
- session
- persistent
CookieSession:
description: |
Expand Down Expand Up @@ -2874,6 +2926,7 @@ components:
oneOf:
- $ref: "#/components/schemas/InputDataRegisterClientCapabilities"
- $ref: "#/components/schemas/InputDataRegisterLoginIdentifier"
- $ref: "#/components/schemas/InputDataRememberMe"
- $ref: "#/components/schemas/InputDataRegisterPassword"
- $ref: "#/components/schemas/InputDataVerifyPasscode"
- $ref: "#/components/schemas/InputDataOTPCodeVerify"
Expand All @@ -2895,6 +2948,7 @@ components:
oneOf:
- $ref: "#/components/schemas/InputDataRegisterClientCapabilities"
- $ref: "#/components/schemas/InputDataContinueWithLoginIdentifier"
- $ref: "#/components/schemas/InputDataRememberMe"
- $ref: "#/components/schemas/InputDataEmailAddressSet"
- $ref: "#/components/schemas/InputDataVerifyPasscode"
- $ref: "#/components/schemas/InputDataPasswordLogin"
Expand Down