pub fn is_local_iss(iss: &str, local_issuers: &[&str]) -> boolExpand description
Returns true if iss belongs to a local node.
Used for pre-decode key routing (before a Claims object exists) and by
Claims::is_local_to for post-decode subject derivation — both use
identical criteria so routing and subject resolution are always consistent.
Rules:
- Empty
issis always local (cluster-internal tokens have no issuer claim). - If
local_issuersis non-empty:issmust exactly match one entry. - If
local_issuersis empty (unconfigured node): only an emptyissis accepted as local; any non-emptyissis treated as federated.