Use Openid Connect Provider with Postgrest #2089
-
Hello, I'd like to know if there is any way to use an Openid Connect provider (like this one on Gitlab) to perform authentication within Postgrest ? As I read the docs, I understand that we can only use Auth0, because I don't see where we specify the authentication provider url. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can definitely use other OIDC identity providers, as far as I am aware. I have seen some chatter on gitter and other issues within the postgrest community around using "keycloak" (another OIDC provider). Basically, as far as I understand it all Postgrest needs is the authorization header mentioned here: https://postgrest.org/en/v8.0/auth.html#client-auth Now how you get that to work with your setup is another story... my suspicion is that you would need to figure out how to get that JWT into the Authorization header yourself.
To test how this workflow works with Postgrest, you could always pretend that the "auth workflow" already happened (by doing it somewhere else with your desired identity provider) and then send that jwt to postgrest manually with Hope that helps, even if a bit delayed 😄 |
Beta Was this translation helpful? Give feedback.
-
I created an issue in the docs repo. Maybe we can find somebody to provide a how-to or something for a setup like this. |
Beta Was this translation helpful? Give feedback.
I created an issue in the docs repo. Maybe we can find somebody to provide a how-to or something for a setup like this.