Register Your Site with OAuth2 Providers

To enable your storefront to interact with OAuth2 providers such as Google and Facebook, register your site as a client application with the providers you want to support. The registration process is provider-specific. The following sections provide some helpful information about the registration processes of popular OAuth2 providers to help you get started.

Note:

This topic assumes that you are familiar with the OAuth2 specification and OAuth2-related concepts. In addition, several of the links provided here require a site-specific account.

Google

Obtain client credentials for your application from the Google API Console.

For information on using OAuth2 with Google, see the following resources:

LinkedIn

To register your client application, go to https://www.linkedin.com/secure/developer.

For more information, see https://docs.microsoft.com/en-us/linkedin/shared/authentication/authentication.

Microsoft

To register your client application, go to https://account.live.com/developers/applications/index.

If you have a regular Live customer account through which you can test OAuth login as an end user, you can see what permissions you have given the client application by going Here and selecting Apps and Services.

For background information, see https://docs.microsoft.com/en-us/azure/active-directory/develop/.

Facebook

To register your client application, go to https://developers.facebook.com/apps.

Facebook doesn't follow the OAuth2 specification in some older versions, because some of the responses in the authentication flow are in plain text, instead of JSON. Facebook also expects a non-standard access token query parameter name in one of the URLs.

For more information, see https://developers.facebook.com/docs/facebook-login/.

GitHub

To register your client application, go to https://github.com/settings/applications/new. The Callback URL must be an absolute URL, for example:

https://domain/on/demandware.store/Sites-SiteGenesis-Site/default/Login-OAuthReentryGitHub

GitHub allows only one URL. For more information, see https://developer.github.com/apps/building-oauth-apps/.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.