Skip to main content

card_credentials

Function card_credentials 

Source
pub fn card_credentials(card: &AgentCard) -> Vec<String>
Expand description

The fields of card that carry a credential in a URL.

That is user information (user:pass@host) or a query parameter named like a secret (?token=). RequestHandlerBuilder::build refuses a card with any (spec §14: the card “SHOULD NOT include sensitive credentials”; §13.3, an extended card no “unmasked credentials”): a card is published to whoever asks, so a credential in it is disclosed.