To support the very first zio-http-pac4j release, I also wrote an article:

πŸ” https://seroperson.me/2025/09/03/zio-http-jwt-auth/

It shows in details how to implement a JWT-based authorization for zio-http and also covers such features as token expiration, encryption, roles and custom payload.

#scala #zio #jwt #pac4j

Implementing a JWT-based authorization for zio-http

Hassle-free implementation of JWT-based authorization for a zio-http web server in Scala using pac4j.

seroperson’s website

I want to introduce to you my very recent library: zio-http wrapper for pac4j. pac4j is an easy and powerful security framework for authenticating users, getting their profiles, and managing authorizations to secure web applications and services.

There are wrappers for numerous frameworks and libraries, such as http4s, Play, Akka HTTP and Java-world frameworks. Now we also have an implementation for zio-http as well!

https://github.com/seroperson/zio-http-pac4j

#scala #zio #pac4j #jwt #oauth

GitHub - seroperson/zio-http-pac4j: zio-http wrapper for pac4j, security framework to protect your web applications

zio-http wrapper for pac4j, security framework to protect your web applications - seroperson/zio-http-pac4j

GitHub

Back in April, I had to fight with Pac4j adding OpenID Connect to an application that, for the first time in many projects, had a public/anonymous section.
Out of frustration, I then created my own project, and now after months of procrastination, I'm releasing 1.0.0-rc-1
https://github.com/tbroyer/oidc-servlets

(and before you ask, the project at work isn't using this, it's still using Pac4j)

#oidc #pac4j #OpenIDConnect #java

#Java: Popular Java Security Framework #pac4j Vulnerable to Remote Code Execution (#RCE) Critical Vulnerability CVE-2023-25581.
Great find and GitHub Advisory by @artsploit:
πŸ‘‡
https://securityonline.info/popular-java-security-framework-pac4j-vulnerable-to-rce-cve-2023-25581/
Popular Java Security Framework 'pac4j' Vulnerable to RCE (CVE-2023-25581)

Critical vulnerability in pac4j Java security framework: CVE-2023-25581 allows attackers to execute arbitrary code on affected systems.

Cybersecurity News

connect2id's Nimbus OAuth2/OIDC SDK is underrated, particularly as a direct dependency!

https://connect2id.com/products/nimbus-oauth-openid-connect-sdk

Many people use it through Spring Security or Pac4j but the lib is relatively easy to use directly (particularly if you know the protocols) and can be used to add OIDC support to Java apps with much less complexity than those Spring or Pac4j authentication frameworks (but at the cost of having to handle some of the Web security yourself, mainly around CSRF)

#Java #OAuth2 #OIDC #OpenIDConnect #SpringSecurity #Pac4j

Nimbus OAuth 2.0 SDK with OpenID Connect extensions | Connect2id