This comparison focuses on Keycloak and Spring Security's OpenID Connect protocol support. Looking for their IAM features like MFA, SSO, and user management? Compare Keycloak vs Spring Security on IAM features.

Keycloak vs Spring Security

Compare Keycloak and Spring Security side by side across grant types, token endpoint authentication methods, extensions, endpoints, FAPI compliance, and protocol features.

KeycloakπŸ‡ΊπŸ‡Έ
Spring SecurityπŸ‡ΊπŸ‡Έ

Keycloak supports 40 of 44 tracked features, Spring Security supports 25.

Feature Comparison

  • Keycloak – Authorization Code: Supported
    Spring Security – Authorization Code: Supported
  • Keycloak – Refresh Token: Supported
    Spring Security – Refresh Token: Supported
  • Keycloak – Client Credentials: Supported
    Spring Security – Client Credentials: Supported
  • Keycloak – Implicit: Supported
    Spring Security – Implicit: Not supported
  • Keycloak – Token Exchange: Supported
    Spring Security – Token Exchange: Supported
  • Keycloak – Client Initiated BackChannel Authentication: Supported
    Spring Security – Client Initiated BackChannel Authentication: Not supported
  • Keycloak – Device Authorization Grant: Supported
    Spring Security – Device Authorization Grant: Supported
  • Keycloak – JWT Bearer Token: Supported
    Spring Security – JWT Bearer Token: Not supported
  • Keycloak – SAML 2.0 Bearer Assertion: Not supported
    Spring Security – SAML 2.0 Bearer Assertion: Not supported
  • Keycloak – Resource Owner Password Credentials: Supported
    Spring Security – Resource Owner Password Credentials: Not supported
  • Keycloak – PKCE: Supported
    Spring Security – PKCE: Supported
  • Keycloak – PAR: Supported
    Spring Security – PAR: Supported
  • Keycloak – RAR: Not supported
    Spring Security – RAR: Not supported
  • Keycloak – JAR: Supported
    Spring Security – JAR: Not supported
  • Keycloak – Authorization Endpoint: Supported
    Spring Security – Authorization Endpoint: Supported
  • Keycloak – Token Endpoint: Supported
    Spring Security – Token Endpoint: Supported
  • Keycloak – UserInfo Endpoint: Supported
    Spring Security – UserInfo Endpoint: Supported
  • Keycloak – Token Revocation: Supported
    Spring Security – Token Revocation: Supported
  • Keycloak – Token Introspection: Supported
    Spring Security – Token Introspection: Supported
  • Keycloak – Device Authorization Endpoint: Supported
    Spring Security – Device Authorization Endpoint: Supported
  • Keycloak – OpenID Connect Discovery Endpoint: Supported
    Spring Security – OpenID Connect Discovery Endpoint: Supported
  • Keycloak – OAuth 2.0 Authorization Server Metadata Endpoint: Partially supported
    Spring Security – OAuth 2.0 Authorization Server Metadata Endpoint: Supported
  • Keycloak – none: Supported
    Spring Security – none: Supported
  • Keycloak – client_secret_basic: Supported
    Spring Security – client_secret_basic: Supported
  • Keycloak – client_secret_post: Supported
    Spring Security – client_secret_post: Supported
  • Keycloak – client_secret_jwt: Supported
    Spring Security – client_secret_jwt: Supported
  • Keycloak – private_key_jwt: Supported
    Spring Security – private_key_jwt: Supported
  • Keycloak – tls_client_auth: Supported
    Spring Security – tls_client_auth: Supported
  • Keycloak – none: Supported
    Spring Security – none: Unknown support
  • Keycloak – login: Supported
    Spring Security – login: Unknown support
  • Keycloak – consent: Supported
    Spring Security – consent: Unknown support
  • Keycloak – select_account: Supported
    Spring Security – select_account: Unknown support
  • Keycloak – create: Not supported
    Spring Security – create: Unknown support
  • Keycloak – FAPI 1.0 Security Profile - Part 1: Baseline: Supported
    Spring Security – FAPI 1.0 Security Profile - Part 1: Baseline: Not supported
  • Keycloak – FAPI 1.0 Security Profile - Part 2: Advanced: Supported
    Spring Security – FAPI 1.0 Security Profile - Part 2: Advanced: Not supported
  • Keycloak – FAPI 2.0 Security Profile: Supported
    Spring Security – FAPI 2.0 Security Profile: Unknown support
  • Keycloak – FAPI 2.0 Message Signing: Supported
    Spring Security – FAPI 2.0 Message Signing: Not supported
  • Keycloak – JARM: Supported
    Spring Security – JARM: Not supported

Looking for a different comparison? See the full OpenID Connect Providers benchmark.

Looking for their IAM features like MFA, SSO, and user management? Compare Keycloak vs Spring Security on IAM features.

More Keycloak comparisons

Keycloak vs Ping IdentityKeycloak vs AuthleteKeycloak vs CurityKeycloak vs GluuKeycloak vs OktaKeycloak vs Auth0Keycloak vs Duende IdentityServerKeycloak vs ZitadelKeycloak vs OryKeycloak vs Better AuthKeycloak vs CasdoorKeycloak vs AutheliaKeycloak vs authentikKeycloak vs Microsoft Entra External IDKeycloak vs FusionAuthKeycloak vs Google Cloud IdentityKeycloak vs CyberArk IdentityKeycloak vs DescopeKeycloak vs Amazon CognitoKeycloak vs KindeKeycloak vs WorkOSKeycloak vs LogtoKeycloak vs AuthgearKeycloak vs DexKeycloak vs OneLoginKeycloak vs StytchKeycloak vs Supabase AuthKeycloak vs SAP CIAMKeycloak vs PropelAuthKeycloak vs ClerkKeycloak vs SuperTokensKeycloak vs MemorityKeycloak vs RauthyKeycloak vs FronteggKeycloak vs WSO2 Identity ServerKeycloak vs Purse IdentityKeycloak vs MojoAuthKeycloak vs ScalekitKeycloak vs SooauthKeycloak vs JumpCloudKeycloak vs SailPoint Identity Security CloudKeycloak vs SSOJetKeycloak vs EvidianKeycloak vs Apereo CASKeycloak vs Pocket IDKeycloak vs Gravitee Access ManagementKeycloak vs StrivacityKeycloak vs UbisecureKeycloak vs Firebase AuthenticationKeycloak vs AuthressKeycloak vs AuthsignalKeycloak vs Beyond IdentityKeycloak vs cidaasKeycloak vs CorbadoKeycloak vs HankoKeycloak vs IBM VerifyKeycloak vs IDnowKeycloak vs Ilex Sign&goKeycloak vs LoginRadiusKeycloak vs MagicKeycloak vs NevisKeycloak vs Oracle OCI IAMKeycloak vs SaviyntKeycloak vs Shibboleth Identity ProviderKeycloak vs Stack AuthKeycloak vs Thales SafeNet Trusted AccessKeycloak vs Transmit SecurityKeycloak vs TrustBuilderKeycloak vs WALLIX Sovereign Identity Access

More Spring Security comparisons

Spring Security vs Ping IdentitySpring Security vs AuthleteSpring Security vs CuritySpring Security vs GluuSpring Security vs OktaSpring Security vs Auth0Spring Security vs Duende IdentityServerSpring Security vs ZitadelSpring Security vs OrySpring Security vs Better AuthSpring Security vs CasdoorSpring Security vs AutheliaSpring Security vs authentikSpring Security vs Microsoft Entra External IDSpring Security vs FusionAuthSpring Security vs Google Cloud IdentitySpring Security vs CyberArk IdentitySpring Security vs DescopeSpring Security vs Amazon CognitoSpring Security vs KindeSpring Security vs WorkOSSpring Security vs LogtoSpring Security vs AuthgearSpring Security vs DexSpring Security vs OneLoginSpring Security vs StytchSpring Security vs Supabase AuthSpring Security vs SAP CIAMSpring Security vs PropelAuthSpring Security vs ClerkSpring Security vs SuperTokensSpring Security vs MemoritySpring Security vs RauthySpring Security vs FronteggSpring Security vs WSO2 Identity ServerSpring Security vs Purse IdentitySpring Security vs MojoAuthSpring Security vs ScalekitSpring Security vs SooauthSpring Security vs JumpCloudSpring Security vs SailPoint Identity Security CloudSpring Security vs SSOJetSpring Security vs EvidianSpring Security vs Apereo CASSpring Security vs Pocket IDSpring Security vs Gravitee Access ManagementSpring Security vs StrivacitySpring Security vs UbisecureSpring Security vs Firebase AuthenticationSpring Security vs AuthressSpring Security vs AuthsignalSpring Security vs Beyond IdentitySpring Security vs cidaasSpring Security vs CorbadoSpring Security vs HankoSpring Security vs IBM VerifySpring Security vs IDnowSpring Security vs Ilex Sign&goSpring Security vs LoginRadiusSpring Security vs MagicSpring Security vs NevisSpring Security vs Oracle OCI IAMSpring Security vs SaviyntSpring Security vs Shibboleth Identity ProviderSpring Security vs Stack AuthSpring Security vs Thales SafeNet Trusted AccessSpring Security vs Transmit SecuritySpring Security vs TrustBuilderSpring Security vs WALLIX Sovereign Identity Access