You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
use AccessToken with custom claims and definable 3rd party signing key #2597
Right now it seems the token needed for Auth against the supabase DB is quite custom. I looked at Hasura and there its so much easier to work with a 3rd party auth service like Auth0 because you can just use the AccessToken from Auth0 with some custom Claims in it.
Describe the solution you'd like
I want to put the signage key of the token (i get from auth0) in the Supabase admin section. And i want the needed things for supabase in namespaced custom claims inside the token. This can be easily done with Auth0 (actions). With that i can just pass the AccessToken (JWT compliant) of Auth0 to Supabase.
Supabase can do the Token verification easily with the provided key. All in all i dont need a cloud function with generates me a Supabase compliant JWT, which is always a hassle because the mentioned cloud function service also needs to auth against my current Auth0 user. So a lot of headaches.
Sorry this one took so long to respond to! 😓 we're going through the backlog now, and I'm starting from the oldest -> newest, and it looks like this got lost in the noise
Hopefully the article above answers your question comprehensively, but if there's anything missing just let me know and I can reopen
Activity
kiwicopple commentedon Sep 26, 2022
Custom claims can be managed by inserting the data into the
auth.users.raw_app_metadatacolumn.We have a good article on it here: https://dev.to/supabase/supabase-custom-claims-34l2
Sorry this one took so long to respond to! 😓 we're going through the backlog now, and I'm starting from the oldest -> newest, and it looks like this got lost in the noise
Hopefully the article above answers your question comprehensively, but if there's anything missing just let me know and I can reopen
feat: update @supabase/*-js libraries to v2.112.3 (#48928)