Skip to content

feat(login): say which application a sign-in continues to - #3616

Open
peintnermax wants to merge 4 commits into
mainfrom
feat/login-requesting-client
Open

peintnermax wants to merge 4 commits into
mainfrom
feat/login-requesting-client

Conversation

@peintnermax

@peintnermax peintnermax commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Context

Summary

A sign-in that an OAuth client asked for did not say which application the visitor signs in to, unless the client needed consent. The first step now says it in its subtitle: "Sign in" / "to continue to Acme Reports".

  • client in the template context. The client the flow answers is a new client variable on every step of such a flow, and null in any other. A text names it through {client}, as consent.title already does.
  • A .client variant of a step's description. A step shows the application where the texts have <step>.description.client. The built-in texts have it for identifier, register and choose-register, so every other step, such as the one a provider's sign-up lands on, keeps its own description.
  • It replaces the plain subtitle, and comes before the .sso and .custom_identifier variants.
  • A description the host wrote itself is kept, in any language: as with the other variants, a rewritten <step>.description drops the built-in .client text until the host writes that too.
  • A host can opt out by setting a step's .client text to "", under en for every language.
  • A name is shown as it is, including a $ in it.
  • The .sso description fallback is in one place, behind a plainDescription helper. No change in behaviour.
  • A Storybook story, Orchestrator/Login/Sign in to an application, opens a request on the mock.
  • Docs: a section in the customize-copy guide and client in the template bindings table.

Validation

Run at the repo root:

  • turbo run typecheck lint test --filter=@zitadel/components --filter=@zitadel/config --filter=@zitadel/docs: 17 of 17 tasks passed (unit, edge and browser projects).
  • turbo run typecheck lint --filter=@zitadel/storybook, on the first commit.
  • In Storybook, the new story, on the first commit: the title reads "Sign in" and the subtitle "to continue to Acme Reports".

Not run: Storybook's test task, the e2e lanes, and a sign-in against a real server.

Release notes / changeset

  • Changeset: .changeset/login-names-requesting-application.md (@zitadel/components minor): the subtitle, the client variable and the .client text, with a link to the docs section.

Notes

  • The step is chosen by its texts, not by the template. A commit in between moved the choice into the default template; the review showed that rule also matched register-sso, showed English over a host's own language and could not be hidden for every language, so the last commit goes back to the .client text.
  • Only the name is shown. A client chooses its own name; the host that proves who asks is shown on the consent step, which every client that is not the project's own still gets.
  • Left out: client on the zitadel-flow-step event. It changes the SDKs' event contract, so it comes on its own.
  • German and Italian wording ("Weiter zu {client}", "Continua su {client}") needs a native check.

🤖 Generated with Claude Code

A flow that answers an OAuth client's authorization request names the
client in the template context, and the first step's subtitle says which
application the visitor signs in to.

Refs #2795

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cloud Ready Ready Preview Dec 3, 2026 2:27pm UTC

Request Review

Copilot AI balanced review requested due to automatic review settings December 3, 2026 12:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The default template shows client.description on the step with the
identifier field, in place of a .client variant of each step's
description.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comment thread packages/components/README.md Resolved
Goes back to the <step>.description.client text, which the review showed
the template rule could not replace: the rule also matched the step a
provider's sign-up lands on, showed English over a host's own language,
and could not be hidden for every language.

- An empty .client text keeps the step's description, in every language.
- A client's name with a $ in it is shown as it is.
- Documents the text and the client binding.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — ff9a404e Deployed Dec 3, 2026 by vercel[bot]
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.

Login: answer authorization requests in the customer-hosted login

3 participants