Here are steps to create basic setup for social accounts linking with Google
Creating a new App
Here are the step-by-step instructions for obtaining OAuth credentials for Google:
- Go to the Google Cloud Console and sign in to your account.
- Once you're signed in, click on the project dropdown menu in the top navigation bar and select or create the project you want to use for your OAuth credentials.
- In the left-hand menu, click on the "APIs & Services" tab, then click on the "Credentials" submenu.
- Complete the "Configure Consent Screen" instructions if you haven't completed this before.
- Click on the "+ Create Credentials" in the horizontal navigation below the search bar, then select "OAuth client ID" from the dropdown menu.
- Select the "Web application" application type.
- Enter a name for your OAuth client ID, such as "My App OAuth Credentials."
- In the "Authorized JavaScript origins" field, enter the origin of your web application, for example, "https://example.com".
- In the "Authorized redirect URIs" field, enter the URI that Google should redirect users to after they authorize your application. This will be provided by Dynamic. You can find the "Authorized redirect URI" in Dynamic Dashboard:
- Click "Information capture" card
- Expand "Social Account Linking" section
- Click "Configure" button next to the Google provider.
- Copy the Redirect URL and paste it in the section on Google page.
- Click "Save changes" button.
- Click the "Create" button to create your OAuth client ID.
- After creating your OAuth client ID, you should see a "Client ID" and "Client Secret" on the "Credentials" page. These are the credentials you'll need to copy and paste them into "Set up Google Auth" Modal in the Dynamic Dashboard.
That's it! You now have OAuth credentials for your Google application that you can use in Dynamic.
Remember to enable the Google and later "Social accounts linking" field in the Information Capture Modal.
If you need more help with configuring the Google OAuth App check their docs here.
Updated 16 days ago