Repository navigation
SDKs: application-initiated actions (requiredAction, kcActionStatus) and sign-out of other devices - #43
Merged
Conversation
xgp
approved these changes
Nov 20, 2026
pnzrr
force-pushed
the
jp/kc-action-sdks
branch
from
November 22, 2026 08:52
f8387c0 to
0f6c9d3
Compare
…nd sign-out of other devices - LoginParameters.kcAction (kc_action, reserved field) and Authentication.requiredAction(_:maxAge:) — a step-up with kc_action; NativeLoginFlow.kcActionStatus reports success, cancelled or error after .authorized. - UpdatePasswordParams.logoutOtherSessions and ChallengeAnswer.updatePassword(_:confirm:logoutOtherSessions:) (sent only when set). - Default update_password screen: 'Sign out of other devices' toggle when offered, Cancel and a neutral subtitle when the app asked for the change (skippable); en/de strings. - KcActionReplayTests replay the KcActionIT transcripts; integration guide section.
…s) and sign-out of other devices - LoginParameters.kcAction (kc_action, reserved field) and Authentication.requiredAction — a step-up with kc_action; NativeLoginFlow.kcActionStatus (KcActionStatus) after Authorized. - UpdatePasswordParams.logoutOtherSessions and ChallengeAnswer.UpdatePassword(logoutOtherSessions = …) (sent only when set). - Default update_password screen: 'Sign out of other devices' switch when offered, Cancel and a neutral subtitle when the app asked for the change; en/de strings. - KcActionReplayTest (twin of the iOS tests) replays the KcActionIT transcripts; integration guide section.
…Status) and sign-out of other devices - LoginParameters.kcAction and authentication.requiredAction(alias, parameters) — a step-up with kc_action through both native bridges. - The authorized step and NativeLoginResult carry kcActionStatus; KcActionStatus type. - UpdatePasswordParams.logoutOtherSessions and the updatePassword answer's logoutOtherSessions (mapped by both bridges, sent only when set). - Default update_password screen: 'Sign out of other devices' switch when offered, Cancel (was 'Not now') and a neutral subtitle when the app asked for the change; en/de strings. - kcAction.test.ts replays the KcActionIT transcripts through TranscriptNative (taught kc_action, the status and the sign-out field); integration guide section.
…s) and sign-out of other devices - Pigeon: LoginParametersMessage.kcAction, FlowStepMessage.kcActionStatus, AnswerMessage.logoutOtherSessions (regenerated); both native plugins map them. - LoginParameters.kcAction and Authentication.requiredAction(alias, maxAge:) — a step-up with kc_action; KcActionStatus on AuthorizedStep and NativeLoginAuthorized. - UpdatePasswordChallenge.logoutOtherSessions and ChallengeAnswer.updatePassword(logoutOtherSessions:); the default screen offers 'Sign out of other devices' and, when the app asked for the change, Cancel and a neutral subtitle (en/de). - kc_action_test.dart replays the KcActionIT transcripts; the transcript host learned step-ups (the stored post-login auth_session). Integration guide section and changelog.
… browser hand-off
pnzrr
force-pushed
the
jp/kc-action-sdks
branch
from
November 22, 2026 09:01
0f6c9d3 to
f0b8ed8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SDK side of spec/21 for iOS, Android, React Native and Flutter. Stacked on #41 (the server change); retarget to
mainonce #41 merges.API (same shape on every platform)
kc.authentication.requiredAction("UPDATE_PASSWORD", maxAge:): a step-up withkc_actionusing the stored post-login session. Re-authentication follows the realm's Maximum Age of Authentication for the action;maxAge: 0always asks for the factors again.LoginParameters.kcAction(reserved field).kcActionStatus(success/cancelled/error, unknown values kept): on the flow after it is authorized (iOSflow.kcActionStatus, Androidflow.kcActionStatus, RNflow.kcActionStatusand theauthorizedstep /NativeLoginResult, FlutterAuthorizedStep/NativeLoginAuthorized/flow.kcActionStatus). Also set after the browser fallback, from the callback'skc_action_status, when the action has no native variant.update_password:logoutOtherSessionson the params (the server's suggested default; absent from older servers) and on the answer (sent only when set).Default screens (SwiftUI, Compose, React, Flutter): "Sign out of other devices" switch when offered (on by default); when the app asked for the change (the descriptor is skippable): a Cancel button that sends
action=skipand a neutral subtitle. New strings in English and German.Bridges: RN (both native modules) and Flutter (Pigeon regenerated:
LoginParametersMessage.kcAction,FlowStepMessage.kcActionStatus,AnswerMessage.logoutOtherSessions,CredentialsMessage.kcActionStatus) map the new fields.Tests: every platform replays the
KcActionITtranscripts from #41: password change right after sign-in with sign-out of other devices, the realm's max auth age forcing re-authentication,max_age=0+ cancel, actions that reporterror, and an action without a native variant completed through the browser fallback with the callback's status.swift test).KcActionReplayTest(6).flutter analyzepass.Docs: a "Change password and other application-initiated actions" section in each integration guide; a row in the README's "What runs natively" table and the ROADMAP's done list; Flutter changelog.