ADK for TypeScript: API Reference
    Preparing search index...

    Class OAuth2DiscoveryManager

    Implements Metadata discovery for OAuth2 following RFC8414 and RFC9728.

    Constructors

    Methods

    • Discovers the OAuth2 authorization server metadata.

      Parameters

      • issuerUrl: string

      Returns Promise<
          | {
              authorization_endpoint: string;
              issuer: string;
              registration_endpoint?: string;
              scopes_supported?: string[];
              token_endpoint: string;
          }
          | undefined,
      >

    • Discovers the OAuth2 protected resource metadata.

      Parameters

      • resourceUrl: string

      Returns Promise<{ authorization_servers: string[]; resource: string } | undefined>