younifyd
Menu

Oauth Provider

Login Using an OAuth Provider

GET/auth/login/{provider}

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Oauth Provider action (under Authentication).
  3. Fill in the fields below, then reference the result from later steps as {{oauthProvider.response.data}}.

Request

Path parameters

providerstringrequired

Key of the activated OAuth provider.

Query parameters

redirectstring

Where to redirect on successful login.<br/>If set the authentication details are set inside cookies otherwise a JSON is returned.

Response

Returns 200 with an object. Read it in later steps with {{oauthProvider.response.data.<field>}}.

publicboolean
dataobject
tokenstring
json
{
  "public": false,
  "data": {
    "token": "string"
  }
}

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Was this page helpful?