Auth

Add an OAuth provider

Adds an OAuth provider configuration to the specified branch's Neon Auth integration. After adding, users can authenticate using the configured provider.

post/projects/{project_id}/branches/{branch_id}/auth/oauth_providers

Request

  • Base URL: https://console.neon.tech/api/v2
  • URL: https://console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/oauth_providers
  • Auth: one of:
    • HTTP bearer
    • API key in cookie zenith
    • API key in cookie keycloak_token

Request body

id'google' | 'github' | 'microsoft' | 'vercel' required
client_idstring
client_secretstring
microsoft_tenant_idstring

Response

The OAuth provider has been added to the project

id'google' | 'github' | 'microsoft' | 'vercel' required
type'standard' | 'shared' required
client_idstring
client_secretstring

Changes

No recorded changes to this operation across all 1 revision of this API.