S
Supabase9mo ago
Bitrot

Auth and Kotlin Spring Boot

Hi, I tried to setup Supabase auth in a backend app with Kotlin and SB for a while, but had no luck. I don't have the FE yet but those would be different FEs including mobile aps. However, I need some additional user data on the backend and I need to have those profile synced up, and also validate all the different kind of requests (in a SaaS environment). However I couldn't set up the current nor the old KT SDK to work with it and JWTs. Are there any examples of how to implement this on JVM/Spring boot security (not Ktor, sorry) together with SB security interceptors? Not using RLS just Postgres (Supa or DO) from the KT service via JPA/jdbc and will move to r2dbc (plus s3 and other stuff) but I would love to use Supabase Auth as a simple authenticator
2 Replies
TheRealJan
TheRealJan9mo ago
I have two repos using Spring Boot in combination with Supabase: - https://github.com/hieuwu/supa-spring-kt - https://github.com/tschuehly/htmx-supabase-spring-boot-starter But I'm not using Spring Boot myself, hence there is no official sample
Bitrot
BitrotOP9mo ago
Thanks, much appreciated! I'll check them out to get some ideas, especially the 2nd one looks promising

Did you find this page helpful?