Login Providers
Drako Tickets supports password-based login and three OAuth providers: Google, Discord, and Microsoft. OAuth providers are optional β you can enable any combination of them.
OAuth is configured in two places:
The provider's developer console β to create OAuth credentials
Supabase β to enable the provider and paste the credentials
DrakoTickets dashboard β to show the button on the login page
Supabase callback URL
All three providers require the same redirect URL. You will need this in each setup below:
https://<your-supabase-project>.supabase.co/auth/v1/callbackYou can find and copy this URL directly from Settings β Login Providers inside the DrakoTickets dashboard.
Google
Create OAuth credentials in Google Cloud
Go to console.cloud.google.com and open or create a project.
Navigate to APIs & Services β Credentials and click Create Credentials β OAuth 2.0 Client ID.
Set the application type to Web application.
Under Authorised redirect URIs, add your Supabase callback URL and click Save.
Copy the Client ID and Client Secret.
The Google sign-in button will now appear on the login and registration pages.
Discord
Create OAuth credentials in Discord
Go to discord.com/developers/applications and click New Application (or open an existing one).
Open the OAuth2 tab and click Add Redirect.
Paste your Supabase callback URL and click Save Changes.
Copy the Client ID and Client Secret from the top of the OAuth2 tab.
If you are also using the Discord bot integration, you can use the same application β the bot token and OAuth credentials are separate.
Microsoft
Register an application in Azure
Go to the Azure Portal and navigate to Azure Active Directory β App registrations β New registration.
Give the app a name and choose the supported account types:
Single tenant β only your organisation's accounts
Multitenant β any Microsoft / Azure AD account
Multitenant + personal β also allows personal Microsoft accounts (Outlook, Hotmail)
Under Redirect URI, select Web and paste your Supabase callback URL.
Click Register.
Copy the Application (client) ID from the Overview page.
Go to Certificates & secrets β New client secret, set an expiry, and copy the Value (not the Secret ID).
Troubleshooting
OAuth button appears but clicking it shows an error
Double-check the redirect URI in the provider's console matches the Supabase callback URL exactly (no trailing slash).
Ensure the provider is enabled in both Supabase and the DrakoTickets dashboard.
Last updated