How to secure a JAX-RS client application with OIDC (using pac4j)

java dev.to

Before adding OIDC to a JAX-RS application, let's distinguish two cases. A browser visits a protected page and needs to be redirected to a login form. An API caller, on the other hand, already has an access token and sends it with the request. The application must handle these differently. The jax-rs-pac4j library (like pac4j) supports both. It protects resources with pac4j clients through annotations, on Jersey or RESTEasy (JAX-RS is now called Jakarta REST). We'll start with browser login on

Read Full Tutorial open_in_new
arrow_back Back to Tutorials