AEM Social Login (Google OAuth2) | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
June 26, 2020

AEM Social Login (Google OAuth2) | AEM Community Blog Seeding

  • June 26, 2020
  • 0 replies
  • 2103 views

BlogImage.jpg

AEM Social Login (Google OAuth2) by The Grey Teacher

Abstract

Tested on AEM 6.5.0

As we all know that AEM provides multiple types of Authentication out of the box using Sling's AuthenticationHandler API.

Today we will see how we can utilise OAuth Authentication Handler to integrate Google OAuth2. All the code required for this is available on GitHub.
Prerequisites
1. Understanding of OAuth 2 Authorizaion code grant type
2. Client Id and secret of an Application registered on Google dev console.
-->In Allowed Redirect URIs add: /callback/j_security_check. Eg.- localhost:4503/callback/j_security_check
3. Basic understanding of scribe-java library. Alert - AEM uses very old version of scibe-java library which we can't upgrade if we want to utilise the OOTB OAuthAuthenticationHandler

OAuth Authentication Handler Background
AEM developed its whole OAuth flow around the Scribe-Java library and provides OOTB working solution for Facebook and Twitter which we can test on We.Retail sample site in publish mode.

Read Full Blog

AEM Social Login (Google OAuth2)

Q&A

Please use this thread to ask the related questions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.