Azure Active Directory vs Keycloak

Need advice about which tool to choose?Ask the StackShare community!

Azure Active Directory

403
272
+ 1
6
Keycloak

715
1.3K
+ 1
102
Add tool

Keycloak vs Azure Active Directory: What are the differences?

Azure Active Directory (Azure AD) and Keycloak are identity and access management solutions that provide authentication, authorization, and user management capabilities. Let's explore the key differences between them:

  1. Deployment Model: Azure Active Directory is a cloud-based identity and access management service provided by Microsoft. It is tightly integrated with other Microsoft Azure services and is designed to be used within the Azure ecosystem. On the other hand, Keycloak is an open-source identity and access management solution that can be deployed on-premises or in the cloud. Keycloak provides flexibility in deployment options and can be installed and managed by organizations independently.

  2. Integration with Ecosystem: Azure Active Directory (Azure AD) integrates closely with Microsoft's ecosystem, encompassing Azure services, Office 365, and Microsoft 365. It ensures smooth integration with Microsoft applications, enabling single sign-on (SSO) and centralized user management. On the other hand, Keycloak, an open-source solution, supports diverse platforms and frameworks by leveraging widely adopted standards like SAML, OpenID Connect, and OAuth2. It offers the flexibility to integrate with various applications and systems.

  3. Feature Set: Azure Active Directory (Azure AD) provides a wide range of features for identity and access management, including user authentication, multi-factor authentication, conditional access policies, RBAC, and federation with external identity providers. It also offers device and application management functionalities. Keycloak, an open-source solution, offers similar authentication and authorization capabilities, supporting protocols like SAML, OpenID Connect, and OAuth2. It includes features such as user federation, SSO, and granular access control.

  4. Enterprise Capabilities: Azure Active Directory is designed to cater to the needs of enterprises, providing features like advanced security and compliance controls. It offers features such as identity protection, privileged identity management, and security monitoring. Azure AD also provides integration options with Azure AD B2C, which is designed specifically for customer-facing applications. Keycloak, being an open-source solution, may not have the same level of enterprise-focused features out-of-the-box. However, it can be extended and customized to meet specific enterprise requirements.

  5. Scalability and Performance: Azure Active Directory is a managed service provided by Microsoft, which ensures scalability and high-performance. It is designed to handle millions of users and supports high availability and load balancing. Keycloak, as an open-source solution, can also scale based on the deployment choices made by organizations. It can be deployed in a distributed manner to handle large user bases and high loads, but organizations need to manage the scalability and performance aspects themselves.

In summary, Azure Active Directory is a cloud-based identity and access management service tightly integrated with the Microsoft ecosystem. It provides comprehensive features, enterprise capabilities, and scalability within the Azure environment. Keycloak, on the other hand, is an open-source identity and access management solution that offers flexibility in deployment options and integration with various platforms. It provides similar authentication and authorization capabilities but requires organizations to manage the infrastructure and customization aspects.

Advice on Azure Active Directory and Keycloak
Needs advice
on
KeycloakKeycloakOktaOkta
and
Spring SecuritySpring Security

I am working on building a platform in my company that will provide a single sign on to all of the internal products to the customer. To do that we need to build an Authorisation server to comply with the OIDC protocol. Earlier we had built the Auth server using the Spring Security OAuth project but since in Spring Security 5.x it is no longer supported we are planning to get over with it as well. Below are the 2 options that I was considering to replace the Spring Auth Server. 1. Keycloak 2. Okta 3. Auth0 Please advise which one to use.

See more
Replies (3)
Luca Ferrari
Solution Architect at Red Hat, Inc. · | 5 upvotes · 210.2K views
Recommends
on
KeycloakKeycloak

It isn't clear if beside the AuthZ requirement you had others, but given the scenario you described my suggestion would for you to go with Keycloak. First of all because you have already an onpremise IdP and with Keycloak you could maintain that setup (if privacy is a concern). Another important point is configuration and customization: I would assume with Spring OAuth you might have had some custom logic around authentication, this can be easily reconfigured in Keycloak by leveraging SPI (https://www.keycloak.org/docs/latest/server_development/index.html#_auth_spi). Finally AuthZ as a functionality is well developed, based on standard protocols and extensible on Keycloak (https://www.keycloak.org/docs/latest/authorization_services/)

See more
Sandor Racz
Recommends
on
KeycloakKeycloak

We have good experience using Keycloak for SSO with OIDC with our Spring Boot based applications. It's free, easy to install and configure, extensible - so I recommend it.

See more
Recommends
on
KeycloakKeycloak

You can also use Keycloak as an Identity Broker, which enables you to handle authentication on many different identity providers of your customers. With this setup, you are able to perform authorization tasks centralized.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Azure Active Directory
Pros of Keycloak
  • 6
    Backed by Microsoft Azure
  • 33
    It's a open source solution
  • 24
    Supports multiple identity provider
  • 17
    OpenID and SAML support
  • 12
    Easy customisation
  • 10
    JSON web token
  • 6
    Maintained by devs at Redhat

Sign up to add or upvote prosMake informed product decisions

Cons of Azure Active Directory
Cons of Keycloak
  • 3
    Closed source
  • 7
    Okta
  • 6
    Poor client side documentation
  • 5
    Lack of Code examples for client side

Sign up to add or upvote consMake informed product decisions

What is Azure Active Directory?

It is a comprehensive identity and access management solution that gives you a robust set of capabilities to manage users and groups. You can get the reliability and scalability you need with identity services that work with your on-premises, cloud, or hybrid environment.

What is Keycloak?

It is an Open Source Identity and Access Management For Modern Applications and Services. It adds authentication to applications and secure services with minimum fuss. No need to deal with storing users or authenticating users. It's all available out of the box.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Azure Active Directory?
What companies use Keycloak?
See which teams inside your own company are using Azure Active Directory or Keycloak.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Azure Active Directory?
What tools integrate with Keycloak?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

May 21 2020 at 12:02AM

Rancher Labs

KubernetesAmazon EC2Grafana+12
5
1500
What are some alternatives to Azure Active Directory and Keycloak?
AWS IAM
It enables you to manage access to AWS services and resources securely. Using IAM, you can create and manage AWS users and groups, and use permissions to allow and deny their access to AWS resources.
Okta
Connect all your apps in days, not months, with instant access to thousands of pre-built integrations - even add apps to the network yourself. Integrations are easy to set up, constantly monitored, proactively repaired and handle authentication and provisioning.
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
Git
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
GitHub
GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over three million people use GitHub to build amazing things together.
See all alternatives