In this blog post, I will walk you through a step by step guide on how to integrate Google authentication with an Adxstudio web application.

Please note that you need to have a registered Google account as a prerequisite to use this guide.

Steps to Integrate Google Authentication with Adxstudio Portals

  1. Navigate to the Google API page. Under social APIs, click on “Google+ API”.

google api

 

  1. Click on the “Enable” button.

enable button

 

  1. In the Google Developers Console, click on “Credentials”.

google developers console

  1. Provide the project name, agree on the terms and conditions, and click on “Create”.

google developers console project name

 

  1. Click on “Create credentials” and choose “OAuth client ID”.

create credentials

  1. Click on “Configure consent screen”.

configure consent screen

  1. Provide the “Product name shown to users” and click on “Save”. (You can fill in other information which is optional.)

provide product name

 

  1. Select “Web Application” from the option buttons. Provide a name for your web application, then provide “Authorized JavaScript origin” with the URL of your web application. Next, provide “Authorized redirect URI” with your web application’s URL suffixed with “signin-google” and click on “Create” button.

select web application

 

  1. You will be provided with a client ID and a secret to use while configuring Adxstudio portal.

client id

  1. Navigate to the Adxstudio Site Settings entity.

adxstudio site settings

  1. Create/set setting entity record “Authentication/OpenAuth/Enabled” with a value of “True”.

set setting entity record

  1. Create/set setting entity record “Authentication/Registration/ExternalLoginEnabled” with a value of “True”.
  2. Create/set setting entity for “Authentication/OpenAuth/Google/ClientId” with the client ID you received in step 7.
  3. Create/set setting entity for “Authentication/OpenAuth/Google/ClientSecret” with the client secret you received in step 7.
  4. Restart the application pool of your Adxstudio web application and navigate to the URL of your Adxstudio web application. You will now see a button which will take you to Google’s authentication. You can now verify whether the integration is working by clicking on the “Google” button.

restart application pool

 

You will be presented with the below notification. If you click on the “Allow” button, you will be redirected to the Google sign in page.

integrate google authentication

 

I hope this becomes handy when you come across a requirement to configure Google authentication with Adxstudio. If you come across any difficulties, I’m happy to help leave a comment and I will get back to you as soon as possible.