Authentication

Set a method as the account's primary

Changed on

Promotes the given method to the account's primary sign-in method. The account's canonical email is re-derived from the promoted method's identity. Refused for password stubs and converted anonymous methods, and for an identity whose domain is outside the project's allowed_email_domains.

post/auth/user/methods/{methodId}/promote

Request

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

Path parameters

methodId, string uuid required

The method ID to promote

Response

The promoted method

AuthMethodSummary required

A single sign-in method the account owns (password, an OAuth provider, or an active anonymous method). is_primary reflects the account's primary_method_id.

id, string uuid required

Unique method identifier

type, 'password' | 'oauth' | 'anonymous' required

The kind of sign-in method

provider, string

OAuth provider name; present only when type is oauth

identity_id, string required

The identity this method signs in to — a UUID for password/oauth methods, empty for anonymous methods.

email, string required

The email of the method's identity (empty for anonymous)

is_primary, boolean required

Whether this is the account's primary sign-in method

last_used_at, string date-time

When this method was last used to sign in, if ever

created_at, string date-time required
updated_at, string date-time required

Example response

{
  "provider": "google"
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    19 more changes in this revision