We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug A clear and concise description of what the bug is.
Cant use the GetRealmRoles methods. 403
To Reproduce
client := gocloak.NewClient("http://127.0.0.1:8080/auth") ctx := context.Background()
token, err := client.Login(ctx, "go-demo", "7VTxDxG4TOrtAert6FvjhMdcZKrYLyXz", "demo", "admin", "123456") if err != nil { panic("Something wrong with the credentials or url") } fmt.Println(token) rptResult, err := client.RetrospectToken(ctx, token.AccessToken, "go-demo", "7VTxDxG4TOrtAert6FvjhMdcZKrYLyXz", "demo") if err != nil { panic("Inspection failed:" + err.Error()) } if !*rptResult.Active { panic("Token is not active") } permissions := rptResult.Permissions fmt.Println(permissions) user, err := client.GetUserInfo(ctx, token.AccessToken, "demo") fmt.Printf("user: %v\n", user) users, err := client.GetRawUserInfo(ctx, token.AccessToken, "demo") fmt.Printf("users: %v\n", users) parmas := gocloak.GetRoleParams{} roles, err := client.GetRealmRoles(ctx, token.AccessToken, "demo", parmas) fmt.Printf("roles: %v\n", roles) for this demo i can login success and get the token userInfo but GetUserByID err 403
Expected behavior A clear and concise description of what you expected to happen.
200 status code response of GetUserByID user.
Screenshots
Additional context Add any other context about the problem here.
gocloak version: 13.8 keycloak version: 22.0.1-2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
A clear and concise description of what the bug is.
Cant use the GetRealmRoles methods. 403
To Reproduce
client := gocloak.NewClient("http://127.0.0.1:8080/auth")
ctx := context.Background()
Expected behavior
A clear and concise description of what you expected to happen.
200 status code response of GetUserByID user.
Screenshots
Additional context
Add any other context about the problem here.
gocloak version: 13.8
keycloak version: 22.0.1-2
The text was updated successfully, but these errors were encountered: