Keycloak authentication and authorization #4861
-
I have started using pocketbase recently and love it! Further I would like to use it as my main source for data in all my applications. What I would like to achieve: What I have done so far:
General settings: Type: OpenID Connect Capability config Client authentication: on Login settings Root URL: http://localhost:4200
Client ID: pocketbase
What is the issue?
I receive the error: ClientResponseError 400: Something went wrong while processing your request. The pocketbase logs show following error:
I wanted to see how far i come to achieve my goal, do you have some tips on my way to it? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
For the other 400 error - the |
Beta Was this translation helpful? Give feedback.
ClientResponseError 400: Unsupported collection type.
error is because the auth call must be against your auth collection (in your caseusers
).For the other 400 error - the
details
field indicates that there is something wrong with the communication between your containers. Double check that your PocketBase container is accessible from the one where your Keycloak one is and the opposite (note that each container has its own127.0.0.1
address).