Oauth

Get an OAuth provider

Retrieves a specific OAuth provider by the user ID and the OAuth provider ID.

get/oauth-providers/{user_id}/{provider_id}

Path parameters

provider_idstring required
user_idstring required

The ID of the user, or the special value me for the currently authenticated user

Example:3241a285-8329-4d69-8f3d-316e08cf140c

The ID of the user, or the special value me for the currently authenticated user

Response

Successful response

account_idstring required

Account ID of the OAuth provider. This uniquely identifies the account on the provider side.

user_idstring required

The ID of the user, or the special value me for the currently authenticated user

idstring required

The unique identifier of the OAuth provider

emailstring

Email of the OAuth provider. This is used to display and identify the OAuth provider in the UI.

provider_config_idstring required

Provider config ID of the OAuth provider. This uniquely identifies the provider config on config.json file

type'google' | 'github' | 'microsoft' | 'spotify' | 'facebook' | 'discord' | 'gitlab' | 'bitbucket' | 'linkedin' | 'apple' | 'x' | 'twitch' required

OAuth provider type, one of google, github, microsoft, spotify, facebook, discord, gitlab, bitbucket, linkedin, apple, x, twitch

allow_sign_inboolean required

Whether the user can use this OAuth provider to sign in. Only one OAuth provider per type can have this set to true.

allow_connected_accountsboolean required

Whether the user can use this OAuth provider as connected account. Multiple OAuth providers per type can have this set to true.

Example response

{
  "account_id": "google-account-id-12345",
  "user_id": "3241a285-8329-4d69-8f3d-316e08cf140c",
  "id": "b3d396b8-c574-4c80-97b3-50031675ceb2",
  "email": "test@gmail.com",
  "provider_config_id": "google",
  "type": "google",
  "allow_sign_in": true,
  "allow_connected_accounts": true
}

Changes

Changed in 1 of the 24 revisions of this API.12

    • added the new apple enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new bitbucket enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new discord enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new facebook enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new github enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new gitlab enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new google enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new linkedin enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new microsoft enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new spotify enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new twitch enum value to the type response property for the response status 200

      response-property-enum-value-added

    • added the new x enum value to the type response property for the response status 200

      response-property-enum-value-added