Search Results :

×

Joomla OAuth Client Integration with AWS Cognito Single Sign-On (SSO)

The Joomla OAuth Client plugin uses the OAuth protocol to provide secure access to Joomla sites by enabling AWS Cognito as the OAuth provider, simplifying the login process. This integration allows users to log in with their AWS Cognito credentials, eliminating the need for multiple passwords. The plugin also features user profile attribute mapping, and role mapping for access based on organizational roles. For more details about the features of the Joomla OAuth & OpenID Connect Client plugin, please visit our page here. Follow the steps below to set up AWS Cognito OAuth SSO with Joomla.


Youtube-color Created with Sketch.

To setup OAuth Single Sign-On between Joomla and AWS Cognito, you can also follow this step by step Setup Video.


In this configuration, AWS Cognito functions as the OAuth server, while Joomla allows users to log in with their AWS Cognito credentials by utilizing the Joomla OAuth Client Plugin.

  • Login into your Joomla site’s Administrator console.
  • From left toggle menu, click on System, then under Install section click on Extensions.
  • Now click on Or Browse for file button to locate and install the plugin file downloaded earlier.
  • Installation of plugin is successful. Now click on Get Started!
  • Under Configure OAuth -> Pre-Configured Apps tab, select your OAuth Provider. You can also search for custom OAuth or custom OpenID application in the search bar, and configure your own custom provider.
Get Started with OAuth Client Setup

  • After selecting your OAuth provider, you will be redirected to the Step 1 [Redirect URL] tab. Now copy the Callback/Redirect URL which we will use to configure Microsoft Entra ID as OAuth Server, then click on the Save & Next button.
Get Started with OAuth Client Setup

  • Log into the AWS Dashboard.
  • Enter “Cognito” in search box & select Cognito from dropdown.
AWS Management Console

  • Now click on “Manage User Pools”.
Manage User Pools

  • Click on “Create a user pool” button.
Create a user pool

  • Enter your pool name and click on “Review Defaults”.
Review Defaults

  • Click on “Add app client” & then click on Add an app client.
Add an app client

  • Enter App client name & then Click on “Create app client”.
Create app client

  • Click on Return to pool details. After this click on “Create Pool”.
  • Navigate to App client settings.
  • Select “Cognito User Pool”.
  • Paste the Callback URL we copied earlier in the Callback URL field.
  • Also, Click on checkbox of Authorization code grant of Allowed OAuth Flows & click on checkbox of OpenID of Allowed OAuth Scope. Then click on Save Changes button
Create Pool

  • Go to “App client” from left menu and then click on “Show details” to get a App Client ID and Client secret.
Copy Client ID and Secret

  • Go to domain name and enter a domain name for your app. After adding domain name you can check its availability by clicking on “Check availability” button. After entering valid domain name click Save changes button.
Enter a domain name for your app

  • Complete domain name: The complete domain name that you need to enter in module is {your domain name}.auth.{region name}.amazoncognito.com
  • Go back to your Joomla Dashboard. Then go to Step 2 [Client ID & Secret].
  • Paste the Client ID, Client Secret and Domain. Also Set Client Credentials In header then click on Save Settings. Once Settings are saved then click on Save Configuration.
Upload IdP
    Metadata

Scope Openid
Authorize Endpoint https://<cognito-app-domain>/oauth2/authorize
Access Token Endpoint https://<cognito-app-domain>/oauth2/token
Get User Info Endpoint https://<cognito-app-domain>/oauth2/userInfo
Set Client Credentials In Both (In Header and In Body)

  • User Attribute Mapping is mandatory for enabling users to successfully login into Joomla. We will be setting up user profile attributes for Joomla using below settings.
  • Go to Step 3 [Attribute Mapping] tab and click on Test Configuration button.
Upload IdP
    Metadata

  • You will be able to see the attributes in the Test Configuration output as follows.
Upload IdP
    Metadata

  • Now go to the Step 3 [Attribute Mapping] tab and Select the attribute name for Email and Username from dropdown. Then click on Finish Configuration button.
Upload IdP
    Metadata

  • Now go to Step 4 [SSO URL] tab, here copy the Login/SSO URL and add it to your Site by following the given steps.
Upload IdP
    Metadata

  • Now logout and go to your Joomla site's pages where you have added this link. You will see a login link where you placed that button. Click on this button to perform SSO.


ADFS_sso ×
Hello there!

Need Help? We are right here!

support