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

Variable Resources in PolicyRepresentation is always null #156

Closed
jvaca92 opened this issue Mar 13, 2020 · 4 comments
Closed

Variable Resources in PolicyRepresentation is always null #156

jvaca92 opened this issue Mar 13, 2020 · 4 comments

Comments

@jvaca92
Copy link

jvaca92 commented Mar 13, 2020

Issue description

When I call method GetPolicies am I getting all existing policies for my realm and client but when I try to access variable Resources in PolicyRepresentation I am getting always null and the resources exist because I have created them through admin ui.
Can be problem with mapping of the resources ?

Expecting behavior
Able to get resources through PolicyRepresentation.

@SVilgelm
Copy link
Collaborator

Hi, Could you show your code? How do you query the policies?
Unfortunately I cannot find a good documentation for resource-server API, so I cannot validate that we have a correct representation. But I found at least one error here: https://github.com/Nerzal/gocloak/blob/master/client.go#L1999

Here is Pr to fix that issue: #157

@SVilgelm
Copy link
Collaborator

The PR #157 is merged and released in https://github.com/Nerzal/gocloak/releases/tag/v5.0.1

@SVilgelm
Copy link
Collaborator

Please check with new version

@SVilgelm
Copy link
Collaborator

SVilgelm commented Apr 1, 2020

@jvaca92 i'm closing this issue due to not responding. Feel free to re-open is necessary

@SVilgelm SVilgelm closed this as completed Apr 1, 2020
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

No branches or pull requests

2 participants