Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Improve use of identity tokens for authenticated HTTP requests with the client library #18

@grayside

Description

@grayside

Current Behavior

gcloud auth print-identity-token is used to create an un-scoped token and passed around the code so requests can be made.

Desired Behavior

The new idtoken library provides an HTTP client that automatically handles identity token minting. Use that instead. This HTTP client can be passed a customized HTTP client, which is how timeouts for #16 would be supported.

An example of using the library in this way can be found in the Function-to-Function Request Sample.


This issue affects one category in my review of the repository:

  • Internals: Is the implementation efficient, effective, and maintainable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions