Skip to main content

Company discovery

Company discovery โ€” loading the slidesโ€ฆ

Discovery turns a company domain into verified, public PAP metadata. The personal agent fetches /.well-known/poppy.json, validates the document and supported protocol version, reads the issuer from the domain's protected resource metadata, and then reads that issuer's OAuth metadata. No access token, Session JWT, cookie, assertion, or user identifier belongs on these requests.

What the example provesโ€‹

  • Only HTTPS, public-network destinations are eligible.
  • Redirects, response sizes, content types, duplicate JSON members, domains, versions, and issuer relationships are checked before data is trusted: the final URL's path must be exactly /.well-known/poppy.json with no query (invalid_discovery_location), and the issuer's metadata must list https://{domain} in protected_resources.
  • The summary says which sign-in modes the company offers (Direct and Device from the OAuth metadata, Mediated from its extension and grant type), the company's own scopes in its own words (auth.scopes), and the interfaces it lists.
  • The tool result contains a capability inventory, not raw response bodies.
  • Discovery is credential-free, which prevents accidental token forwarding to an unverified host.

Validation before a later, independent DNS lookup is not sufficient protection against rebinding, so the Python SDK pins the connection: the URL safety policy returns the addresses it approved (ApprovedUrl), and the default transport dials only those, never resolving the host again, while TLS still verifies the host name. The TypeScript SDK checks addresses but does not yet pin the socket: pair it with an egress proxy that enforces the same decision.

Run the Pydantic AI example or the Agent Runtimes example. Continue with Personal-agent identity and the company implementation guide.