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

DID

20
26
+ 1
0
Keycloak

763
1.3K
+ 1
102
Add tool

DID vs Keycloak: What are the differences?

Introduction:

In the world of authentication and access control, two popular technologies are Decentralized Identifiers (DID) and Keycloak. While they both serve the purpose of providing secure and reliable user authentication, there are several key differences between them. In this article, we will explore these differences in detail.

  1. Authentication Approach: DID is a decentralized approach to authentication, where each user has their own unique identifier that is not controlled by a centralized authority. On the other hand, Keycloak is a centralized identity and access management tool that uses standard protocols like OAuth2 and OpenID Connect for authentication.

  2. Scalability and Flexibility: DID allows for a highly scalable and flexible authentication system, as each user has their own DID that can be used across multiple platforms and applications. Keycloak, on the other hand, provides a centralized solution that may be more suitable for smaller-scale applications or organizations that require strict control over user authentication.

  3. Privacy and Control: With DID, users have more control over their personal data and can choose what information they want to share with others. Keycloak, being a centralized system, may require users to provide more personal information and rely on the organization's policies for data privacy and control.

  4. Interoperability: DID offers interoperability by allowing users to authenticate across different systems and applications using their DIDs. Keycloak, with its standardized protocols, also provides interoperability but may require more configuration and integration efforts.

  5. Community and Support: DID is a relatively new technology and may have a smaller community and support compared to Keycloak, which has been in development for a longer time and has a larger user base and community. Keycloak offers extensive documentation, forums, and support channels to assist developers and administrators.

  6. Customization and Extensibility: Keycloak provides various extensions and plugins that can be used to customize and extend its functionality according to specific requirements. DID, being a decentralized approach, may have limited options for customization and extensibility.

In summary, the key differences between DID and Keycloak lie in the authentication approach, scalability and flexibility, privacy and control, interoperability, community and support, and customization and extensibility. DID focuses on decentralization and user control, while Keycloak offers a centralized and customizable solution with a larger community and support base.

Advice on DID 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 · 233.9K 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
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
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
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of DID
Pros of Keycloak
    Be the first to leave a pro
    • 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 DID
    Cons of Keycloak
      Be the first to leave a con
      • 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 DID?

      It is an Identity Provider that can be used for web and apps. Users are authenticated by verifying access to an email address or a securely stored private key.

      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 DID?
      What companies use Keycloak?
      Manage your open source components, licenses, and vulnerabilities
      Learn More

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

      What tools integrate with DID?
      What tools integrate with Keycloak?

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

      What are some alternatives to DID and Keycloak?
      Postman
      It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.
      Postman
      It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.
      Stack Overflow
      Stack Overflow is a question and answer site for professional and enthusiast programmers. It's built and run by you as part of the Stack Exchange network of Q&A sites. With your help, we're working together to build a library of detailed answers to every question about programming.
      Google Maps
      Create rich applications and stunning visualisations of your data, leveraging the comprehensiveness, accuracy, and usability of Google Maps and a modern web platform that scales as you grow.
      Elasticsearch
      Elasticsearch is a distributed, RESTful search and analytics engine capable of storing data and searching it in near real time. Elasticsearch, Kibana, Beats and Logstash are the Elastic Stack (sometimes called the ELK Stack).
      See all alternatives