Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’2mo agoβ€’
5 replies
Lexumi

Azure OAuth PKCE Error with Single-Tenant Configuration

auth
Hi Supabase team, I'm getting a PKCE error with Azure OAuth and need clarification on the supported configuration. Error:

AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption
AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption

My Configuration: Azure AD:
Supported account types: Accounts in this organizational directory only (single-tenant)
Platform: Single-page application (SPA) with redirect URIs
When using SPA platform, Microsoft requires PKCE for authorization code flow
Supabase:
Azure Tenant URL:
https://login.microsoftonline.com/<tender-id>
https://login.microsoftonline.com/<tender-id>

Client configured with
flowType: "pkce"
flowType: "pkce"

Scopes:
openid email profile
openid email profile



Does Supabase Auth support Azure apps configured as SPA platform? The documentation mentions configuring tenant URLs for single-tenant apps but doesn't explicitly state whether SPA platform (which requires PKCE) is supported. Should I:
Keep SPA platform - is there additional configuration needed for Supabase to send PKCE parameters to Microsoft?
Switch to Web platform - does Supabase Auth only support the Web platform configuration for Azure OAuth? (Would rather not do that)
The error occurs at the /callback endpoint, suggesting Supabase's OAuth flow isn't sending the PKCE parameters that Microsoft's SPA platform requires. Thanks for clarifying!
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

OAuth PKCE documentation needs an update for `createClient`
SupabaseSSupabase / help-and-questions
6mo ago
URL Configuration for OAuth Redirect
SupabaseSSupabase / help-and-questions
3mo ago
bad_oauth_callback error with Google OAuth
SupabaseSSupabase / help-and-questions
14mo ago
CookieOptions type error when using example OAuth PKCE code from Supabase docs
SupabaseSSupabase / help-and-questions
3y ago