Skip to content

[google-auth-library-java] ServiceAccountCredentials with SSJ flow will get error when invoking refreshAccessToken() #12591

Description

@zhumin8

refreshAccessToke() posts request to OAuth2 token server (see code).
This code path is not exercised for TPC flow via getRequestMetadata(), but it is an public method and is possible to accidentally get triggered by customer's code.

One invocation within this library (that we are patching in googleapis/google-auth-library-java#1528 ) is here

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on Oct 11, 2024
  2. added and removed
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on Mar 19, 2025
  3. changed the title [-]ServiceAccountCredentials with SSJ flow will get error when invoking refreshAccessToke()[/-] [+]ServiceAccountCredentials with SSJ flow will get error when invoking refreshAccessToken()[/+] on Mar 19, 2025
  4. changed the title [-]ServiceAccountCredentials with SSJ flow will get error when invoking refreshAccessToken()[/-] [+][google-auth-library-java] ServiceAccountCredentials with SSJ flow will get error when invoking refreshAccessToken()[/+] on Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p4type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions