-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
[Feature request]: Provide modules for integrating Supabase Auth into a custom backend #415
Comments
Could you clarify what exactly such a library should provide? So JWT decoding and verification? |
I'd also be interested in this for ktor as a server. Our frontend uses supabase for authentication and I need to be able to intercept requests and perform authentication checks on the backend. |
So it should work like a ktor plugin which automatically checks/rejects requests based on the JWT? |
Yes, or at least makes it possibly to build that into your system without too much code. |
Alright, if anyone wants to try to take this on, feel free to ask me for questions about integrating this into supabase-kt. I think ideally there is some basic JWT stuff inside gotrue-kt and then there are spring-boot/ktor modules inside /plugins (like Compose Auth Ui which is not really a supabase-kt plugin). I'm neither an expert in spring-boot nor server side authentication with ktor so it might take a while until I start to work on it. |
@tschuehly can you help us here, please? I was able to use your code from the mentioned repository and I think that official/community integration would be amazing for the Spring Framework ecosystem :) |
@landsman It would probably make sense to partition the different functionality. |
@tschuehly I would appreciate your feedback on what would be good to provide (classes, methods) from |
I'm currently working on a backend that will use it. I can try and post some code/work on it once I get that done but mostly waiting on my frontend team to get started. |
@landsman |
General Info
Feature request
Please provide a package to decode JWT auth. Including Supabase user interface etc.
It would be lovely to have ready-made integration for the most common Spring Boot Framework (Java/Kotlin).
Inspiration: https://github.com/tschuehly/htmx-supabase-spring-boot-starter/tree/master/src/main/kotlin/de/tschuehly/htmx/spring/supabase/auth
Usecase
Typically you have React / Next.js application for frontend and backend in Spring Boot. So you want to get a Supabase access token and verify it on the backend to let the user in and pair it to backend entities.
The text was updated successfully, but these errors were encountered: