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

Support for GET /realms/{realm}/clients/{client-id}/authz/resource-server/settings #420

Closed
Ullaakut opened this issue May 3, 2023 · 0 comments · Fixed by #421
Closed

Comments

@Ullaakut
Copy link
Contributor

Ullaakut commented May 3, 2023

Is your feature request related to a problem? Please describe.

The API has an endpoint to fetch the authorization config for a resource server. Since resource servers are intended to enforce their rules, being able to fetch their own authorization configuration seems like a useful feature for this library.

In the latest version, this is done by making a GET request against /realms/{realm}/clients/{client-id}/authz/resource-server/settings with an access_token that has view_clients, query_clients and view_authorization as part of its service account roles.

Describe the solution you'd like

Add a method called GetResourceServer which returns a ResourceServerRepresentation (already part of models.go)

Describe alternatives you've considered

Making the HTTP request manually without using gocloak, or using a fork.

Additional context

I already implemented the feature on my fork. I will add unit tests and open a PR.

@Ullaakut Ullaakut changed the title Support for GET /realms/{realm}/clients/{client-id}/authz/resource-server/settings Support for GET /realms/{realm}/clients/{client-id}/authz/resource-server/settings May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant