Skip to content

Support ADC fetching for HTTP tool #1030

Description

@duwenxin99

Prerequisites

What are you trying to do that currently feels hard or impossible?

When querying Google APIs that require OAuth access token from ADC credentials, users need to set a headerParam and query using Toolbox SDK's dynamic bound parameter:

    source: my-http-source
    method: GET
    path: /search
    description: some description
    headerParams:
      - name:  Authorization
        description: Google OAuth access token
        type: string

Suggested Solution(s)

Instead, we can create a new HTTP tool field sendGoogleAccessToken that automatically fetches ADC and send it out in the header, making it a much easier user experience.

    source: my-http-source
    method: GET
    path: /search
    description: some description
    sendGoogleAccessToken

Alternatives Considered

No response

Additional Details

Related issue: #1025

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.status: help wantedStatus: Unplanned work open to contributions from the community.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions