ADR-0131: per-profile client sign-in for several clients on one machine
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (deploy) (push) Successful in 4m9s
Foundation / checks (tsan) (push) Successful in 9m48s
Foundation / checks (client) (push) Successful in 19m17s
Foundation / checks (network) (push) Successful in 19m44s
Foundation / checks (checks) (push) Successful in 42m37s
Foundation / checks (postgres) (push) Successful in 45m40s
Foundation / postgres-tools (push) Successful in 30s
Foundation / server-image (push) Successful in 3m13s
Foundation / image (push) Successful in 3m27s
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (deploy) (push) Successful in 4m9s
Foundation / checks (tsan) (push) Successful in 9m48s
Foundation / checks (client) (push) Successful in 19m17s
Foundation / checks (network) (push) Successful in 19m44s
Foundation / checks (checks) (push) Successful in 42m37s
Foundation / checks (postgres) (push) Successful in 45m40s
Foundation / postgres-tools (push) Successful in 30s
Foundation / server-image (push) Successful in 3m13s
Foundation / image (push) Successful in 3m27s
Only one client per machine could sign in: the saved login lived under a single Credential Manager name, and Keycloak ignores prompt=select_account, so the browser reused its single sign-on session. --profile NAME keeps one saved login per profile (the default name is unchanged), and authorization asks for prompt=login so the browser shows the login form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,13 @@ class AuthPlatform {
|
||||
[[nodiscard]] virtual bool save_refresh(std::string_view token) = 0;
|
||||
[[nodiscard]] virtual bool erase_refresh() = 0;
|
||||
};
|
||||
[[nodiscard]] std::unique_ptr<AuthPlatform> native_auth_platform(); // Windows; null elsewhere.
|
||||
// A sign-in profile keeps its own saved login, so several clients on one machine can
|
||||
// use different accounts. Empty is the default profile; otherwise 1..32 of [A-Za-z0-9_-].
|
||||
[[nodiscard]] bool auth_profile_valid(std::string_view profile);
|
||||
// The Credential Manager target for a profile.
|
||||
[[nodiscard]] std::string auth_credential_name(std::string_view profile);
|
||||
// Windows; null elsewhere or for an invalid profile.
|
||||
[[nodiscard]] std::unique_ptr<AuthPlatform> native_auth_platform(std::string_view profile = {});
|
||||
|
||||
[[nodiscard]] std::string auth_form_escape(std::string_view value);
|
||||
[[nodiscard]] std::string auth_base64url(std::span<const std::uint8_t> bytes);
|
||||
|
||||
Reference in New Issue
Block a user