© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
6 replies
W7T2A

Keycloak Provider - Error unable to exchange external code

Hey guys,
I'm currently setup keycloak for auth and tried using it with supabase auth. I've followed the instructions in docs to setup keycloak provider. I'm getting redirected as expected but when logged in I've got an error and redirect loop with error code in url:

http://localhost:3000/?error=server_error&error_description=Unable+to+exchange+external+code

I've double checked clientid + secret on both sides as well as callback urls.

Any suggestions?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Unable+to+exchange+external+code
SupabaseSSupabase / help-and-questions
14mo ago
Unable to exchange external code
SupabaseSSupabase / help-and-questions
4y ago
500 Error getting user email from external provider
SupabaseSSupabase / help-and-questions
4y ago
I am unable to call external API
SupabaseSSupabase / help-and-questions
7mo ago