Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Necessity of account id and team id after token authentication #331

Closed
pantelis-karamolegkos opened this issue Mar 12, 2024 · 2 comments
Closed
Assignees
Labels

Comments

@pantelis-karamolegkos
Copy link

pantelis-karamolegkos commented Mar 12, 2024

After authenticating with NewTokenClient and getting a new *client, why is there a need to pass accountId and teamId to list the projects? Aren't tokens account/team specific?

Is there a way to retrieve those values (accountId / teamId) from the client instance?

@pantelis-karamolegkos pantelis-karamolegkos changed the title Necessity of account id and team id Necessity of account id and team id after token authentication Mar 12, 2024
@Serpentiel Serpentiel self-assigned this Mar 12, 2024
@Serpentiel
Copy link
Contributor

Serpentiel commented Mar 12, 2024

Hey, @pantelis-karamolegkos! 👋

That's a great question, but I would suggest checking if https://github.com/aiven/go-client-codegen works better for your needs.

We will be gradually moving to it, and this project will soon be deprecated, and replaced with the one that I linked.

If you haven't yet started using the client and are simply checking on the things, the new client should be the way to go.

Thank you! I will close this issue for now, but please feel free to respond over here if you would like to stick to this client for some reason, and I'll happily provide you with assistance 🙂

@Serpentiel Serpentiel closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2024
@pantelis-karamolegkos
Copy link
Author

@Serpentiel thanks for your kind reply. I am already moving to the new project and created my first issue (more of a question) in case you have any idea about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants