© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
20 replies
Idris

Set tenantId microsoft oauth in front end

Hi,

I want to set tenantId in the frontend so users are guided to https://login.microsoftonline.com/tenant instead of https://login.microsoftonline.com/common. Microsoft auth is really a pain in the ass so this is a must have so when someone presses login they are already in the correct tenant login page.

However I cant find a way to do this in the front end, either change the url we use for microsoft auth or set a tenantId. The reason I want this is because I have 1 multi tenant project, each tenant can set the tenant id they want their users to login with. I found a supabase option to do it for the backend. But this is not what I am looking for as this is for all logins, regardless of which tenant the user is in. https://supabase.com/docs/guides/auth/social-login/auth-azure#configure-a-tenant-url-optional
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

Impersonating a user from the front end
SupabaseSSupabase / help-and-questions
3y ago
Authentication session works in front but is not available in the end
SupabaseSSupabase / help-and-questions
14mo ago
Google oauth does not set cookie
SupabaseSSupabase / help-and-questions
4y ago
Can I use supabase client on front end with SWR directly?
SupabaseSSupabase / help-and-questions
4y ago