
2025-12-17
OAuth (Open Authorization) is an open standard for secure delegated access. It allows applications and services to authenticate and authorize users or other services without directly sharing passwords. Instead, a trusted identity provider (IdP) issues tokens that can be used to access protected resources.
In EJBCA, OAuth support enables API clients to authenticate using access tokens issued by an external IdP instead of the default certificate based authentication and credentials. This is especially valuable for modern, cloud-native environments where single sign-on (SSO) and centralized identity management are standard.
With OAuth, EJBCA can integrate into your existing authentication ecosystem, making certificate management more secure, auditable, and aligned with enterprise identity governance.
Typical scenarios where OAuth is useful in EJBCA
Who benefits from this support and when
Keycloak is an open-source identity and access management solution that supports OAuth 2.0 and OpenID Connect.
Here is a high-level overview of how a newcomer to EJBCA can integrate with a simple Keycloak setup. Detailed, step-by-step instructions are available in our documentation:
With this workflow, you do not need to create or maintain separate user accounts inside EJBCA. Instead, you leverage the identity provider you already use and thus simplifying onboarding for new users and enabling a more secure, centralized, and modern authentication model. For someone just experimenting with EJBCA, it removes the friction of creating and managing separate EJBCA user accounts and helps you get up and running faster in a secure way.
OAuth support in EJBCA makes it much easier for new users and teams to get started. By relying on an existing identity provider like Keycloak, you avoid the overhead of creating and maintaining separate EJBCA accounts. Instead, you can authenticate securely using the same identities and access policies you already use elsewhere. This not only accelerates onboarding but also provides a clear path toward more secure, consistent, and centrally governed certificate operations.
https://docs.keyfactor.com/ejbca/latest/oauth-provider-management
https://docs.keyfactor.com/ejbca/latest/setting-up-oauth-using-keycloak

