Skip to main content
Also known as simply Associate Social Process, it enables an authenticated user to link their existing Storefront Gateway User ID with a social account of their choice. This Process implements the OAuth 2.0 authorization protocol for the transferring of resources between separate parties. Storefront Gateway follows this protocol to retrieve user details from the social account provider to create and store the association in Storefront Gateway. Once the association is established, the user will be able to authenticate into Storefront Gateway (i.e., into your organization’s Storefront Gateway-powered client application) using the social account.

Adding the Provider ID in the initial Request

Like most Processes, this Process is initialized by the Process Start API. The Process Start API optionally consumes no payload but you can actually add the required parameters upfront in the initial API request URL. For example, in a normal invocation, the Process Start API consumes no payload:
Storefront Gateway then responds with a request for request for a supported providerID:
The response includes an array of provider options. Note that this array will only include options that are configured and enabled. In other words, if your organization only has Facebook and Google enabled in the Amdocs Subscription Marketplace Admin web app, then only those options should appear in this scenario. The client would then need to display the list of available providers to the end user, and pass the user selection back to Storefront Gateway in a subsequent Process Step API, such as PUT /process/step :
In response, the Process would pass along its redirectURL to the client, and flow continues as normal. However, the Associate Social Process is one of the exceptions where the client application can also invoke the Process with the specified providerId in the initial Process Start request. The client specify the providerID in either the request:
Alternatively, the client can specify the provider ID in the request body instead:
Regardless of which method your prefer, this effectively skips that initial step that requires an explicit selection. As a best practice, adding the providerID to the request URL or request body enables you to build your application to display clear badges or links for the user (e.g., “Link Facebook to User Profile”). The client can then invoke the provider-specific variation of the Process when a user clicks on a provider-specific badge or link.

Process Flow

This flow describes the Associate Social Process at a high level, “happy path” flow: Preconditions
  • The Storefront Gateway User is fully activated with at least one verified email or mobile.
  • The user is currently authenticated and in the client’s version of the user profile or user settings menu.
  • The user has at least one social media account with a supported provider.
  • The social provider integration has been enabled and configured in the MarketONE Admin console.
Basic Flow
  1. The user selects to add a specific social media account to their sign-in options.
  2. The client redirects to the social provider, and the user authenticates into that provider.
  3. The social provider navigates the browser back to Storefront Gateway.
    • On the backend, the provider sends along an authorization grant code to Storefront Gateway.
    • Storefront Gateway makes a separate call to the provider backend and exchanges the code for an access token.
    • Storefront Gateway makes another call to the provider backend to redeem the token for user data.
    • The user data includes the user’s name, email/mobile, and an internal social media ID from the provider.
  4. Storefront Gateway searches for any existing User entity currently associated to this particular social media ID.
  5. If no User entity is found, the Process prompts the user to confirm that they want to connect their User ID to the selected social media account.
  6. The user confirms and Storefront Gateway associates the social media with the User ID.
Postconditions Possible or Common Errors
  • The user failed to sign-in with the social provider’s website.
  • The social media account is already associated to another Storefront Gateway User ID.
  • The selected social media provider is not enabled or supported.
  • Access token error (social provider does not return user information to Storefront Gateway).

App Settings

This Process currently has no relevant app settings to configure the Process behavior.

User Journey Diagram

This flow diagram illustrates the standard user journey using the Associate Social Account to User ID Process.

Use Cases

See the following use case topics for guided API walk-throughs of this Process:

See Also

Parent topic:Identity Management Processes