Skip to content

OAuthCredentialsResponse does not support ancillary response attributes #325

@cmunden

Description

@cmunden

Thanks for stopping by to let us know something could be better!

Please be sure to include as much information as possible:

Environment details (provided even though this is more of a feature request)

  • OS: Windows
  • Java version: 8
  • google-oauth-java-client version: 1.30.1

Steps to reproduce (provided to explain the feature request)

  1. AbstractOAuthGetToken instantiates an OAuthCredentialsResponse instance to consume the response from the service endpoint. However, OAuthCredentialsResponse has only 3 attributes. Some service endpoints respond with other important attributes outside of those already in OAuthCredentialsResponse.

Suggested Improvement

  1. Make OAuthCredentialsResponse extend HashMap such that any ancillary attributes returned by the service endpoint can be retrieved from the credentials response.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions