p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
Other
362 stars 65 forks source link

Endpoint `users/:userId/orgs` returns a 405 when trying to GET #129

Closed JHooper-bsl closed 9 months ago

JHooper-bsl commented 9 months ago

When calling the endpoint to get all orgs for a user (docs reference: https://phasetwo.io/api/list-organizations-for-the-given-user) I am consistently getting a response of: "error": "RESTEASY003650: No resource method found for GET, return 405 with Allow header".

Am I doing something wrong or are the docs incorrect and this method isn't supported?

I am running the docker image: quay.io/phasetwo/phasetwo-keycloak:22.0.3 but am mounting in a custom provider and a custom theme.

JHooper-bsl commented 9 months ago

I just removed my custom provider and have found this fixed the issue. Whoops! Classic find the solution as soon as I log it.