Fork me on GitHub

OpenID Connect (v6.5)

pac4j allows you to login using the OpenID Connect protocol v1.0.

It has been tested with various OpenID Connect providers: CAS server, Google, AzureAD, Okta, IdentityServer, MitreID, Keycloak…

1) Dependency

You need to use the following module: pac4j-oidc.

Example (Maven dependency):

<dependency>
    <groupId>org.pac4j</groupId>
    <artifactId>pac4j-oidc</artifactId>
    <version>${pac4j.version}</version>
</dependency>

2) Usage

To define any OIDC client (OidcClient), you will need to define the OIDC configuration first (OidcConfiguration):