OAuth Configuration

Create OAuth configuration

Changed on

Configure OAuth provider (Google, GitHub, Microsoft, Apple, Device)

post/projects/{id}/oauth/configs

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

Request body

CreateOAuthConfigRequest required
provider, 'google' | 'github' | 'microsoft' | 'apple' | 'device' required
client_id, string

Required for non-device providers. Must not be provided for provider=device; server always auto-generates it.

client_secret, string

Required for non-device providers. Must not be provided for provider=device; server always auto-generates it.

redirect_url, string uri

Required for non-device providers. Not used for provider=device.

scopes, string[]

Optional for non-device providers, uses provider defaults if omitted. Not used for provider=device.

Example request

{
  "provider": "google",
  "client_id": "123456789.apps.googleusercontent.com",
  "client_secret": "GOCSPX-abc123def456",
  "redirect_url": "https://yourapp.com/auth/callback",
  "scopes": [
    "openid",
    "email",
    "profile"
  ]
}

Response

OAuth config created

OAuthConfig required
id, string uuid
provider, 'google' | 'github' | 'microsoft' | 'apple' | 'device'
client_id, string
client_secret, string

Masked in responses (shows only first/last 4 chars)

enabled, boolean
redirect_url, string uri
scopes, string[]
created_at, string date-time
updated_at, string date-time

Example response

{
  "client_id": "123456789.apps.googleusercontent.com",
  "client_secret": "GOCS...****",
  "redirect_url": "https://yourapp.com/auth/callback",
  "scopes": [
    "openid",
    "email",
    "profile"
  ]
}

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • breaking

      added the new path request parameter id

    • breaking

      added the new required request property provider

    15 more changes in this revision