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

[contrib/auth] Add QueryClient.Roles() method #57

Open
bounoable opened this issue Aug 1, 2022 · 2 comments
Open

[contrib/auth] Add QueryClient.Roles() method #57

bounoable opened this issue Aug 1, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@bounoable
Copy link
Contributor

Allow querying of user roles:

package example

func example(client auth.QueryClient) {
  userID := uuid.New()
  roleIDs, roleNames, err := client.RolesOf(context.TODO(), userID)
}
@bounoable bounoable added the enhancement New feature or request label Aug 1, 2022
@groggy7
Copy link
Contributor

groggy7 commented Sep 24, 2023

In which file i should implement such a method?

@bounoable
Copy link
Contributor Author

This is the contrib/auth package. The QueryClient can be found in the contrib/auth/api.go 👍🏼

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

No branches or pull requests

2 participants