Skip to content

Commit 623d29e

Browse files
committed
docs(plugin-auth): say what the bare-fallback test and the relay-state reader answer
Claude-Session: https://claude.ai/code/session_01WGufzfp1uE2GE28SdQSaqN Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9d1fa1e commit 623d29e

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎packages/plugins/plugin-auth/src/sso-oidc-refusal-cause.ts‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ function safeSamlTarget(
449449
* The relay-state row the vendor wrote at `/sign-in/sso` for this ACS request
450450
* (`auth-state:<RelayState>`, read through the vendor's own `internalAdapter`,
451451
* which the vendor deletes once it has read it), or `undefined` when there is
452-
* no relay state, the row is gone, or it is unreadable.
452+
* no relay state, the row is gone, or it is unreadable or names no
453+
* `callbackURL`.
453454
*/
454455
async function readRelayStateRow(
455456
context: SamlLandingContext,
@@ -516,10 +517,10 @@ function rebaseSamlRefusal(location: string, target: string): string {
516517
}
517518

518519
/**
519-
* Whether `location` is a refusal on the vendor's bare app-origin fallback:
520-
* the site root, with no query but the `error` and `error_description` the
521-
* vendor sets on it. The fallback itself carries no query, so a success there
522-
* never matches.
520+
* Whether `location` sits on the vendor's bare app-origin fallback: the site
521+
* root, with no fragment and no query but the `error` and `error_description`
522+
* the vendor sets on a refusal. The fallback itself carries no query, so a
523+
* success there carries no `error=` and is never re-based.
523524
*/
524525
function isOnBareFallback(location: string, fallback: string): boolean {
525526
let url: URL;

0 commit comments

Comments
 (0)