OrgAuthSessionCandidate
@gravity-rail/sdk / OrgAuthSessionCandidate
Interface: OrgAuthSessionCandidate
Handler for organization authentication requirement.
Called when a 401 response includes WWW-Authenticate header with realm="org".
The handler should redirect the user to the auth URL for consent/SSO.
Bearer handlers return a candidate; cookie handlers may resolve without a value.
sessionRejected describes the credential sent on that request, without
exposing it. A rejected cached candidate requires fresh authentication.
Properties
onRejected()?
optionalonRejected: () =>void
Cleanup for this exact candidate when its own org rejects it.
Returns
void
orgUuid
orgUuid:
string
session
session:
string
source
source:
"cache"|"new"
Local provenance only; the server still validates the credential.