Understanding Liferay Authentication

Liferay DXP offers flexibility when it comes to user authentication. You can leverage built-in capabilities, integrate with external IdM systems, or even implement a hybrid approach. So, when you’re setting up an authentication method, the first step is deciding whether to use a single authentication method for all users or a combination for different user types. Multiple factors can contribute to selecting the best strategy. Before exploring these factors, let’s take a quick look at Liferay’s authentication capabilities.

Liferay Authentication Features

Liferay DXP offers a range of authentication options. By default, Liferay’s login uses basic authentication while providing extensive configuration options for user authentication and management features, like configurable password policies and multi-factor authentication. Liferay also seamlessly integrates with several popular identity management and SSO providers right out of the box, supporting standards such as LDAP, SAML, and more.

Liferay supports a wide range of third-party identity management and single sign-on solutions.

For example, Liferay can be configured to integrate with popular LDAP directories such as Microsoft Active Directory or OpenLDAP. While for SSO, you can configure a connection to popular SSO providers such as Okta, PingFederate, and Siteminder. With these possibilities in mind, let’s consider which strategy is best for companies like Clarity Vision Solutions.

Choosing an Authentication Strategy

Liferay DXP offers a flexible approach to identity management and user authentication. When implementing authentication, we need to ask whether we’re planning to use external authentication, Liferay’s internal authentication, or some combination. The optimal choice primarily depends on multiple factors, including

User Base Factors

For organizations with a manageable internal user group, Liferay’s internal authentication could satisfy the organization’s security requirements. However, companies with diverse user groups like employees, partners, and customers can benefit from a hybrid approach. Since Liferay can seamlessly integrate with various third-party IdM and Single Sign-On (SSO) services, companies can implement a combination of authentication mechanisms to manage different user types effectively.

One common pattern is to manage employees with an existing enterprise wide Identity Management system, while authenticating external users with Liferay’s built-in identity management and authentication capabilities. This way organizations can start small and evolve to an entirely external solution if the size of their external user base grows.

Performance Considerations

This raises a second factor when choosing an authentication strategy: performance. Depending on the number and type of users expected to authenticate to Liferay, using a dedicated IdM and SSO solution can have performance benefits for your Liferay project. While Liferay DXP has the capability to serve as a primary identity management system and to handle user authentication, Liferay’s authentication is more suitable to low-traffic scenarios. High-traffic websites should leverage external IdM solutions optimized for performance.

Best Practice: Authentication Server

While Liferay can handle user authentication, it’s not optimized to serve as an authentication server. Instead, you should integrate Liferay with a dedicated identity management solution for optimal security and scalability.

Existing Infrastructure

Beyond user base and performance, a company’s existing infrastructure can significantly impact their authentication strategy. Cost and speed are crucial factors for any organization, and leveraging existing IdM and SSO implementations can offer substantial advantages. Many enterprises already manage user identities and authentication through established systems. If they do, they can integrate it with Liferay to leverage their technical investments, reduce development time, and streamline access control. This can improve user experience by ensuring a smooth and efficient login process for all existing users.

Clarity’s Decision

By carefully considering user base, performance needs, and existing infrastructure, organizations can leverage Liferay DXP’s flexible authentication options to create a secure and user-friendly login experience. Now let’s apply these considerations to Clarity Vision Solutions.

Visitors to Clarity’s website can be broadly categorized into three groups: Clarity employees, B2B partners, and anonymous guests. So far, Clarity has been using Okta as their identity management system for managing their employee’s identity and also as their SSO solution. Additionally, they have established processes with their HR department for onboarding new employees and adding their data to the system which requires integrations with their identity management provider. So it is critical to leverage these systems and processes. They also want to leverage Okta for external users who sign up to make inquiries or apply to become distributors.

Before exploring how Clarity can set up Okta, let’s cover Liferay DXP’s default authentication experience.

Liferay DXP’s Default Authentication

By default, all new Liferay DXP environments use basic authentication and begin with a single admin user. This is true for all deployment options, including SaaS, PaaS, and Self-Hosted. However, the credentials for this user depend on your deployment.

By default, all new Liferay DXP environments use basic authentication and begin with a single admin user.

For Liferay SaaS, login credentials are emailed to the project’s initial administrator(s) during the provisioning process. However, for Liferay PaaS and Self-Hosted deployments, the default administrator email address is test@liferay.com and the default password is test.

Note

Liferay PaaS and Self-Hosted administrators can modify this default behavior using portal properties.

So when you start up a new Liferay DXP environment, your first order of business should be to change the admin user’s credentials. The default administrator credentials for the training workspace have already been updated:

  • Email: admin@clarityvisionsolutions.com
  • Password: learn

The default administrator credentials for the training workspace have been updated.

Liferay DXP’s default login method relies on the Sign In widget. This widget uses the database to authenticate users. After logging in, you can begin setting up an alternative authentication method.

Conclusion

Liferay’s flexible features empower organizations to tailor their identity management strategy to their specific needs. Now that you have a general understanding of Liferay’s flexible authentication features, let’s explore Liferay’s compatibility with third-party services for authentication and SSO.

Next Up: Using Third-Party Services for Authentication and SSO

Additional Resources

See official documentation to learn more about Liferay’s authentication features and configuration options:

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy