Repository navigation
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
This branch was successfully deployed
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.
merge only after the managed auth api changes that add
last_attemptandoutcomeare deployed. this page documents fields the public api doesn't return yet.context
managed auth reports a failed login as
error_codeanderror_messageonly. neither says which part of the login stopped,error_codefalls back toflow_failedfor many distinct causes, failed health checks aren't recorded, health checks carry no reason, and replay links open at the start of the video. the api is adding one outcome object, shared by the connection (last_attempt), timeline events (outcome) andmanaged_auth_statesse events (outcome), plus a typed code set (ManagedAuthOutcomeCode, 30 values). this pr documents that phase 1 surface as implemented in the api pull requests, not only as drafted. login instructions are a later phase and aren't mentioned.changes
auth/attempt-outcomes.mdx(sidebar: managed auth > outcomes, after lifecycle):typeandat, and thatlast_attemptandoutcomecan be absent ornullwhile fields inside an outcome are always presentphaseis null on attempts recorded before it existed;health_check_evidenceis set onSUCCEEDED,SIGNED_OUTandINCONCLUSIVEchecks and null onFAILEDchecksdebug_messageformat: fixed text per code, thenPhase: <phase>., left out when the phase is unknownreplay.offset_ms, counted from the recording's real start as the browser's recorder reports it; null on success and whenever that start is unknown, including every attempt recorded before this shipsbrowser_create_failed), the browser failed while checking (browser_error), a provider outage (provider_unavailable), no result or any other error (internal_error). a check whose verification reports an error isFAILED, neverSIGNED_OUTlast_attemptandoutcomeare absent, not null, when there's nothing to reportlast_attemptis replaced: a login or reauth when it ends or pauses, and it stayslast_attemptfrom its pause until it ends; a canceled attempt counts only if it paused. a health check when it changes the connection's status, whatever its result, or when it isINCONCLUSIVEon anAUTHENTICATEDconnection; checks recorded before results existed count asSIGNED_OUTorSUCCEEDEDwhen they changed the status. the page lists the causes and codes of checks that can't run. a key for the hosted login page sees only its own session's attemptunhandled_page: start a new login, and report the connection id if it repeats, matching the shippeddebug_messagehitlCAPTCHA endingFAILED/captcha_blockedFAILEDandINCONCLUSIVEhealth checks whosestatusis the status before the check; readers are told to useoutcome.resultto tell a passoutcomeis set on every state event for a flow that has ended or is paused, including the first event after connecting; null while running and on canceled flowscoderelates to the unchangederror_code: new codes and newly mapped failures underflow_failed, expired attempts with noerror_code, and the older codes that map (mfa_requiredandunsatisfiable_challengetocustomer_input_required,region_not_enabledtoinsufficient_plan,network_errortowebsite_error,bot_detectedtocaptcha_blocked)auth/connection-lifecycle.mdx: short pointers from the health check step, the failure section and the debugging section to the new page. the existingerror_codetable is unchanged.docs.json: nav entry.testing and validation
mint validate: strict build passed.mint broken-links(whole site): no broken links.mint broken-links --check-anchorson the two changed pages: no broken links.mint dev:/auth/attempt-outcomesand/auth/connection-lifecyclereturn 200, and the new sections are in the rendered html.openapi.yamlenums): all 30 outcome codes, 5 results, 3 phases, 6 evidence values and 3 types are on the page, and every backticked name on the page is in the spec, the legacy mapping or the existing status values.last_attemptrule, the sseoutcomedescription, thelast_attemptschema description and thedebug_messagetemplates were checked against the api pull request at its latest head.lib/managedauth/outcome.go, the read-time rules and the sse rule from the api handler, the expired-session codes from the workflow cleanup, and the fail-closed behavior from the health check activity.open questions
KERNELin caps and headings follow the repo's title case and sentence case rules, the same mix asauth/programmatic.mdx. the rest of the auth section uses sentence-case prose. which convention should this page follow?last_attemptwhen it changes the status, whatever its result; (2) a paused login or reauth stayslast_attemptuntil it ends, and a canceled one counts only if it paused; (3) a hosted login page key sees only its own session's attempt. i'd confirm all three.FAILEDwith statusNEEDS_AUTH(existing, versioned workflow behavior), so it replaceslast_attempt. the docs state this as is. i'd keep it for phase 1: the check still endsFAILEDwith its code, and changing the versioned status write is out of scope.SIGNED_OUT,INCONCLUSIVE,login_form_not_found,account_choice_requiredandunhandled_pagemention login instructions. this page leaves those out until the login instructions docs land.auth_check_url)", but that field isn't public. the page says "the page that health checks open" and points to a recorded health check's replay.