Identity provider requirements
Identity providers offer a seamless sign-on experience to customers across digital platforms. Instacart Storefront Pro integrates with identity providers that comply with OAuth 2.0 and OpenID Connect (OIDC) standards, such as Okta/Auth0, Microsoft Azure, and Amazon Cognito.
Technical requirements
Your identity provider must meet the following criteria:
| Technology | Description | Required? |
|---|---|---|
| OAuth 2.0 | Supports OAuth 2.0 authentication and authorization standards and OpenID Connect (OIDC) verification. | Required |
| Flows | Handles an authorization code flow with optional PKCE support. Supports a single auth endpoint for customer sign-in and sign-up flows. | Required |
| User claims | Supports assertions about the user for identity purposes. Assertions must include first name, last name, email, phone number, and loyalty or membership ID (if applicable), along with standard 'sub' user identifier.* | Required |
| Token exchange | Handles access tokens, ID tokens, and refresh tokens. Supports client authentication for token-exchange using authorization headers.** | Required |
| Logout endpoint | Supports an endpoint to sign out the logged-in user and returns them to the storefront homepage. | Required |
| Profile edit page URL | Supports a URL to a location where customers can edit their profile information. Manages user authentication session validation and re-authentication if necessary. | Required |
| Loyalty and coupon provider integration (if applicable) | Registers every user with a loyalty program and coupon provider as applicable. | Required, if adopting loyalty program |
* Instacart supports reading user claims either directly from the id_token at token exchange or as an additional /user_info call.
** Instacart does not support the client assertion method.
Customer experience requirements
Retailers set up and maintain the following pages:
- Landing page experience
- Sign-up experience
- Sign-in experience
- Profile editing experience
- Password reset experience
- Logout experience
Landing page experience
The landing page provides options for customers to sign in or sign up for an account through the identity provider.
Work with the identity provider to do the following:
- Create and register an application. Establish a new application with the chosen identity provider and register a client redirect URL within the application setup.
- Obtain a Client ID. Through the registration process, secure a client ID that will be used for both the sign-in and sign-up processes.
- Ensure branding consistency. Align the branding with the Storefront Pro site, including the consistent use of color palettes.
Sign-up experience
The sign-up form (also known as login or registration) requires the following:
- User information collection. Gather essential user details such as user ID, first name, last name, email address, and phone number. These details facilitate communications like emails, texts, and notifications on behalf of retailers.
- Authentication and redirection. After form submission, redirect users back to the originating application with an authentication code.
- Token exchange. Verify that the authentication code can be exchanged for a valid, scoped access token, essential for accessing customer-specific APIs.
- Loyalty program integration. Ensure customer login includes any step to integrate with the loyalty program, and return the loyalty ID as part of user claims.
Sign-in experience
The sign-in form should be similar to the sign-up experience after the user enters the credentials. In addition, the form requires the following:
- Authentication code generation. Upon successful credential entry, the identity provider generates an authentication code.
- Access token retrieval. The authentication code facilitates the retrieval of an access token, which in turn grants access to APIs managing customer information.
Profile editing experience
Although many identity providers offer profile editing capabilities, you have the option to host these pages independently. The profile edit page requires the following:
- Profile edit URL. Provides a link to the editing page.
- Access token initiation. Checks that the customer initiates the profile editing process using a valid access token.
- Information persistence. Ensure that all changes made to user profiles are accurately reflected and stored in the relevant databases.
- Profile edit callback / redirection. After successful form submission, redirect users back to a predefined Storefront Pro application URL.
Password reset experience
The password reset page offers the following:
- Password reset support. Enables customers to reset their password.
- (Optional) OTP challenge. Challenges users with a One-Time Password (OTP) as an additional security measure before allowing a password reset.
Logout experience
Customers must be able to sign out of their accounts. On logout, the identity provider must:
- Clear any user-specific tokens and any cookies persisted on the browser session.
- Redirect back to the predefined Storefront Pro application URL.
Storefront-to-Storefront Pro user migration
Your Instacart representative will work with you to upgrade from Instacart Storefront. There are a few nuances that need to be addressed, including the following key considerations:
- Instacart must capture user consent for data copy from one platform to another.
- Your identity provider supports routing customers to the sign-in and sign-up pages based on the email address in the authorization flow.