X login setup

Strivacity supports social authentication using external identity providers such as X. This allows customers to log in to your application using their existing X identity.

Step 1: Configuring X authentication in the X Developer Portal

To configure X for use as a social login provider, follow these steps:

  1. You will first need to apply for an X Developer account here.

  2. Once you have an approved X developer account, you will need to create an application within the developer dashboard by logging in.

  3. Navigate to Projects & apps, then select Overview.

  4. Under Standalone apps, select Create app.

  5. Enter a name for your application, then select Complete.

  6. After the application is created, the portal displays the following values: API key, API secret key, and Bearer token. Copy these values and store them securely. You will need them when configuring X in Strivacity.

  7. Open your newly created application. Under Authentication settings, select Edit.

  8. Enable 3-legged OAuth. If you want Strivacity to collect customer email addresses, also enable Request email address from users.

📘

If you enable email collection, you must provide valid Terms of Service and Privacy Policy URLs.

  1. In Edit authentication, configure the following settings, then select Save:
SettingValue
Enable 3-legged OAuthEnabled.
Request email address from usersEnabled (if collecting customer email addresses).
Callback URLhttps://[Strivacity instance URL]/provider/continue
Terms of ServiceURL to your Terms of Service (required if requesting email).
Privacy PolicyURL to your Privacy Policy (required if requesting email).
  1. X configuration is complete. Continue with Step 2 to configure X in Strivacity.

Step 2: Configuring X authentication in Strivacity

Following these steps will finalize your setup for using X as a social login provider for your application in Strivacity.

  1. Start by logging into the Admin Console using an admin account.

  2. From the left-hand menu, select Identities, then Social login.

  3. Select Create.

  4. Select X from the list of available social provider capabilities.

  5. Fill in the Configuration for X as a social login provider. Copy the API key and API secret key from the X Developer Portal (step 6 above), and paste the respective values into the API key and API secret key fields here.

  6. The Scopes that your Strivacity application will request are already defined.

  7. Enable Synchronize and store profile data at each login to ensure customer data is kept up-to-date inside your application. If you choose to synchronize and store this social profile data at each login, Strivacity will retrieve and store this information, which will be visible to the customer on their My Account page and to any Strivacity admins when managing the customer's identity.

  8. You can also define Additional parameters that are included in the authorization request sent to X. These parameters allow you to control provider-specific authentication behavior. For example, some providers support parameters such as prompt=login to force re-authentication instead of reusing an existing session.