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


+ 1

+ 1
Add tool
Advice on Dex and Keycloak
Needs advice
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 · 136.9K views

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 ( Finally AuthZ as a functionality is well developed, based on standard protocols and extensible on Keycloak (

See more
Sandor Racz

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

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 Dex
Pros of Keycloak
    Be the first to leave a pro
    • 31
      It's a open source solution
    • 22
      Supports multiple identity provider
    • 14
      OpenID and SAML support
    • 9
      Easy customisation
    • 8
      JSON web token
    • 4
      Maintained by devs at Redhat

    Sign up to add or upvote prosMake informed product decisions

    Cons of Dex
    Cons of Keycloak
      Be the first to leave a con
      • 7
      • 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 Dex?

      Dex is a personal CRM that helps you build stronger relationships. Remember where you left off, keep in touch, and be more thoughtful -- all in one place.

      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!

      Jobs that mention Dex and Keycloak as a desired skillset
      What companies use Dex?
      What companies use Keycloak?
      See which teams inside your own company are using Dex 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 Dex?
      What tools integrate with Keycloak?
        No integrations found

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

        What are some alternatives to Dex and Keycloak?
        Salesforce Sales Cloud
        The Sales Cloud puts everything you need at your fingertips—available anywhere. From Social accounts and contacts to Mobile, Chatter, and Analytics, collaboration across your global organization and getting deals done faster is not only possible, it's easy.
        It is a customer relationship management solution that brings customers and companies together. It's one integrated CRM platform that gives all your departments — including marketing, sales, commerce, and service — a single, shared view of every customer.
        Pipeline tool for active dealmakers. Get super-organized. Close deals in less time. Built by active salespeople and serious web app developers.
        It is a business management software including CRM, e-commerce, billing, accounting, manufacturing, warehouse, project management, and inventory management.
        Zoho CRM
        Online CRM software for managing your sales, marketing, customer support, and inventory in a single system.
        See all alternatives