Skip to content

spec: Specify select account flow with custom ui#5788

Open
tung2744 wants to merge 2 commits into
authgear:mainfrom
tung2744:dev-3670
Open

spec: Specify select account flow with custom ui#5788
tung2744 wants to merge 2 commits into
authgear:mainfrom
tung2744:dev-3670

Conversation

@tung2744

Copy link
Copy Markdown
Contributor

ref DEV-3670

│ User clicks "Continue" (selects account at index N)
│ ↓
├─▶ GET /api/v1/select_account?x_ref=...&x_account_index=N

@tung2744 tung2744 Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've discussed about the possibility of changing this to a POST request, but did not find a good way. The restriction is from the SameSite=Lax cookie which is not readable by POST request.

ref

Send the cookie only for requests originating from the same site that set the cookie, and for cross-site requests that meet both of the following criteria:

The request is a top-level navigation: this essentially means that the request causes the URL shown in the browser's address bar to change.

This would exclude, for example, requests made using the fetch() API, or requests for subresources from or <script> elements, or navigations inside <iframe> elements.

It would include requests made when the user clicks a link in the top-level browsing context from one site to another, or an assignment to document.location, or a

submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants