Skip to main content
POST
/
v2
/
session
/
apps
/
{appID}
/
config
/
login
/
oauth
/
{provider}
Create OAuth login config
curl --request POST \
  --url https://api.prelude.dev/v2/session/apps/{appID}/config/login/oauth/{provider} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "<string>",
  "client_secret": "<string>",
  "enabled": true,
  "scopes": [
    "<string>"
  ],
  "options": {
    "use_email_as_identifier": true,
    "allow_email_account_merge": true
  },
  "apple": {
    "team_id": "<string>",
    "key_id": "<string>",
    "private_key": "<string>"
  },
  "okta": {
    "domain": "<string>"
  }
}
'
{
  "code": "invalid_request",
  "status": "bad_request",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

appID
string
required

The id of the app the request refers to. An application's unique identifier.

Examples:

"54e9ujn"

"fvua38g"

provider
string
required

The OAuth provider identifier.

Examples:

"google"

"apple"

"github"

"okta"

Body

application/json
client_id
string
required
Example:

"123456789.apps.googleusercontent.com"

client_secret
string
required
Example:

"GOCSPX-abc123def456"

enabled
boolean
Example:

true

scopes
string[]
options
object
apple
object
okta
object

Response

Created