Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mnorbury
Copy link
Contributor

Whilst the token itself now contains the token type, it is useful to be able to determine the type of tokens the token client will return without fetching a token first. An example user of this functionality will be the usage client, which needs to determine if an API call is needed to fetch the team name when the authentication is using an API key.

Refs: https://github.com/cloudquery/cloudquery-issues/issues/893

Whilst the token itself now contains the token type, it is useful to be able to determine the type of tokens the token client will return without fetching a token first. An example user of this functionality will be the usage client, which needs to determine if an API call is needed to fetch the team name when the authentication is using an API key.

Refs: cloudquery/cloudquery-issues#893
Copy link
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR but I would expect us to know the token type based on the token format, not the env variable (similar to https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/#identifiable-prefixes)

@mnorbury mnorbury added the automerge Add to automerge PRs once requirements are met label Nov 16, 2023
@kodiakhq kodiakhq bot merged commit e07af9f into main Nov 16, 2023
@kodiakhq kodiakhq bot deleted the feat/add-method-to-return-token-type branch November 16, 2023 13:26
kodiakhq bot pushed a commit that referenced this pull request Nov 16, 2023
🤖 I have created a release *beep* *boop*
---


## [1.6.0](v1.5.1...v1.6.0) (2023-11-16)


### Features

* Add method to return token type ([#75](#75)) ([e07af9f](e07af9f))


### Bug Fixes

* Generate CloudQuery Go API Client from `spec.json` ([#73](#73)) ([db26b9c](db26b9c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to automerge PRs once requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants