<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Identity on foojay.io - Friends Of OpenJDK</title><link>https://foojay.io/today/category/identity/</link><description>Recent content in Identity on foojay.io - Friends Of OpenJDK</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 30 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://foojay.io/today/category/identity/index.xml" rel="self" type="application/rss+xml"/><item><title>An Introduction to OpenID AuthZEN and authzen-enforcer, a Java SDK</title><link>https://foojay.io/today/an-introduction-to-openid-authzen-and-authzen-enforcer/</link><pubDate>Mon, 30 Nov 2026 00:00:00 +0000</pubDate><guid>https://foojay.io/today/an-introduction-to-openid-authzen-and-authzen-enforcer/</guid><description>&lt;p&gt;&lt;em&gt;This article was first published on &lt;a href="https://hakdogan.medium.com/an-introduction-to-openid-authzen-and-authzen-enforcer-a-java-sdk-933f2122bdd9" target="_blank" rel="noopener noreferrer"&gt;my Medium blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;Over the years, as the software industry became aware of the problems that come with authorization logic embedded in application code, moving that logic out of the application has gradually become the accepted solution. In this model, which the OASIS XACML standard described back in 2003, a &lt;strong&gt;Policy Decision Point (PDP)&lt;/strong&gt; holds the policies and makes the decisions, and a &lt;strong&gt;Policy Enforcement Point (PEP)&lt;/strong&gt; inside the application consults the PDP and enforces its decision.&lt;/p&gt;</description></item><item><title>EUDI wallets with OpenID4VP and pac4j: same device and another device</title><link>https://foojay.io/today/eudi-wallets-openid4vp-pac4j/</link><pubDate>Thu, 12 Nov 2026 00:00:00 +0000</pubDate><guid>https://foojay.io/today/eudi-wallets-openid4vp-pac4j/</guid><description>&lt;p&gt;The European Digital Identity wallet is coming, and applications accepting it will need to talk to it. This tutorial brings wallet authentication to a Java Spring Boot application with pac4j, through two complete examples: a browser and wallet on the same phone, then a browser on a computer and a wallet on a phone, connected by a QR code.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.pac4j.org/" target="_blank" rel="noopener noreferrer"&gt;pac4j&lt;/a&gt; is an open-source Java security library for authentication and authorization across multiple web frameworks. I am Jérôme LELEU, its creator and maintainer. This article combines the two walkthroughs originally published on the pac4j blog: &lt;a href="https://www.pac4j.org/blog/openid4vp_in_action_same_device.html" target="_blank" rel="noopener noreferrer"&gt;on the same device&lt;/a&gt; and &lt;a href="https://www.pac4j.org/blog/openid4vp_in_action_another_device.html" target="_blank" rel="noopener noreferrer"&gt;on another device&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>OpenID Federation with pac4j and CAS</title><link>https://foojay.io/today/openid-federation-with-pac4j-and-cas/</link><pubDate>Fri, 30 Oct 2026 00:00:00 +0000</pubDate><guid>https://foojay.io/today/openid-federation-with-pac4j-and-cas/</guid><description>&lt;p&gt;OpenID Connect (OIDC) has become the go-to protocol for modern application login, progressively taking over many use cases previously handled by SAML or custom authentication built around OAuth. &lt;a href="https://openid.net/specs/openid-connect-core-1_0.html" target="_blank" rel="noopener noreferrer"&gt;OIDC adds a standardized identity layer on top of OAuth 2.0&lt;/a&gt;: OAuth provides delegated authorization, while OIDC also tells an application who has signed in.&lt;/p&gt;&#10;&lt;p&gt;The ecosystem has grown into a family of specifications covering many needs, from provider discovery and dynamic client registration to session management and logout. But one piece was still missing from that picture: a standard way to establish trust across an entire federation without separately onboarding every application at every identity provider. This is the problem addressed by &lt;a href="https://openid.net/specs/openid-federation-1_0.html" target="_blank" rel="noopener noreferrer"&gt;OpenID Federation&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>How to Secure a Spring Boot Application with OpenID Connect and pac4j</title><link>https://foojay.io/today/how-to-secure-a-spring-boot-application-with-openid-connect-and-pac4j/</link><pubDate>Fri, 23 Oct 2026 00:00:00 +0000</pubDate><guid>https://foojay.io/today/how-to-secure-a-spring-boot-application-with-openid-connect-and-pac4j/</guid><description>&lt;p&gt;&lt;a href="https://www.pac4j.org/" target="_blank" rel="noopener noreferrer"&gt;pac4j&lt;/a&gt; is an open-source Java security library for authentication and authorization. It supports protocols such as OpenID Connect, OAuth 2.0, SAML and CAS, with integrations for multiple Java web frameworks. I am Jérôme LELEU, the maintainer of pac4j. In this tutorial, we will use its OpenID Connect client with Spring Boot.&lt;/p&gt;&#10;&lt;p&gt;You want users to sign in to your Java application with Keycloak, Google, Microsoft Entra ID, Okta, Auth0 or even a CAS server. They already have an account there, so your application should not ask them for another password.&lt;/p&gt;</description></item><item><title>DPoP: What It Is, How It Works, and Why Bearer Tokens Aren't Enough</title><link>https://foojay.io/today/dpop-what-it-is-how-it-works-and-why-bearer-tokens-arent-enough/</link><pubDate>Mon, 09 Mar 2026 08:08:06 +0000</pubDate><guid>https://foojay.io/today/dpop-what-it-is-how-it-works-and-why-bearer-tokens-arent-enough/</guid><description>&lt;p&gt;DPoP is one of the most exciting developments in the IAM (Identity and Access Management) space in recent years. Yet many backend developers either have not heard of it or are unsure what it actually changes. In this article, I will break down what DPoP is, what problem it solves, and walk through a working implementation with Keycloak and Quarkus.&lt;/p&gt;&#10;&lt;h2 id="what-is-dpop"&gt;What is DPoP?&lt;/h2&gt;&#10;&lt;p&gt;DPoP (Demonstration of Proof-of-Possession) is an OAuth 2.0 security mechanism defined in &lt;a href="https://datatracker.ietf.org/doc/html/rfc9449" target="_blank" rel="noopener noreferrer"&gt;RFC 9449&lt;/a&gt;. Its core purpose is simple: cryptographically bind an access token to the client that requested it. This way, even if a token is intercepted, it cannot be used by another client.&lt;/p&gt;</description></item><item><title>Securing Vaadin Applications with Microsoft Entra</title><link>https://foojay.io/today/securing-vaadin-applications-with-microsoft-entra/</link><pubDate>Wed, 26 Feb 2025 12:55:43 +0000</pubDate><guid>https://foojay.io/today/securing-vaadin-applications-with-microsoft-entra/</guid><description>&lt;p&gt;Many companies use Microsoft 365, so letting users log in with their Microsoft account is a good choice. This blog post shows how to secure your Vaadin applications using Microsoft Entra for authentication and authorization and explains how Karibu Testing must be configured.&lt;/p&gt;&#10;&lt;h2 id="step-1-create-an-application-in-entra"&gt;Step 1: Create an Application in Entra&lt;/h2&gt;&#10;&lt;p&gt;The first step is to create an application, configure roles, assign users, and set the redirect URI.&lt;/p&gt;&#10;&lt;p&gt;To create an application, log in to &lt;a href="http://entra.microsoft.com" target="_blank" rel="noopener noreferrer"&gt;http://entra.microsoft.com&lt;/a&gt; and select &amp;ldquo;Applications&amp;rdquo; -&amp;gt; &amp;ldquo;Enterprise applications.&amp;rdquo; There, you can create a new application. Select &amp;ldquo;Register an application to integrate with Microsoft Entra ID (App you&amp;rsquo;re developing).&amp;rdquo;&lt;/p&gt;</description></item><item><title>System Architecture: Move Authentication to the API Gateway</title><link>https://foojay.io/today/system-architecture-move-authentication-to-the-api-gateway/</link><pubDate>Fri, 15 Sep 2023 07:47:04 +0000</pubDate><guid>https://foojay.io/today/system-architecture-move-authentication-to-the-api-gateway/</guid><description>&lt;p&gt;&lt;strong&gt;When exposing an application to the outside world, consider a Reverse-Proxy or an API Gateway to protect it from attacks. Rate Limiting comes to mind first, but it shouldn&amp;rsquo;t stop there. We can factor many features in the API Gateway and should be bold in moving them from our apps. In this post, I&amp;rsquo;ll show how to implement authentication at the Gateway API stage.&lt;/strong&gt;&lt;/p&gt;&#10;&lt;h2 id="overall-authentication-flow"&gt;Overall authentication flow&lt;/h2&gt;&#10;&lt;p&gt;The API Gateway doesn&amp;rsquo;t authenticate but delegates authentication to an authentication provider. After authentication, the Gateway forwards the request to the app. The app checks authentication and gets the associated identity and permissions.&lt;/p&gt;</description></item><item><title>Authenticate with OpenID Connect and Apache APISIX</title><link>https://foojay.io/today/authenticate-with-openid-connect-and-apache-apisix/</link><pubDate>Thu, 09 Mar 2023 07:51:47 +0000</pubDate><guid>https://foojay.io/today/authenticate-with-openid-connect-and-apache-apisix/</guid><description>&lt;p&gt;Lots of companies are eager to provide their identity provider: Twitter, Facebook, Google, etc. For smaller businesses, not having to manage identities is a benefit. However, we want to avoid being locked into one provider.&lt;/p&gt;&#10;&lt;p&gt;In this article, I want to demo how to use OpenID Connect using Google underneath and then switch to Azure.&lt;/p&gt;&#10;&lt;h2 id="openid-connect"&gt;OpenID Connect&lt;/h2&gt;&#10;&lt;p&gt;The idea of an &lt;em&gt;authorization&lt;/em&gt; open standard started with &lt;a href="https://en.wikipedia.org/wiki/OAuth" target="_blank" rel="noopener noreferrer"&gt;OAuth&lt;/a&gt; around 2006. Because of a security issue, OAuth 2.0 superseded the initial version. OAuth 2.0 became an in 2012:&lt;/p&gt;</description></item><item><title>Vaadin, OAuth2, and Keycloak</title><link>https://foojay.io/today/vaadin-oauth2-and-keycloak/</link><pubDate>Tue, 24 Jan 2023 09:34:41 +0000</pubDate><guid>https://foojay.io/today/vaadin-oauth2-and-keycloak/</guid><description>&lt;p&gt;This article shows how to configure Vaadin and Spring Security to use OAuth2 with Keycloak.&lt;/p&gt;&#10;&lt;h2 id="keycloak"&gt;Keycloak&lt;/h2&gt;&#10;&lt;p&gt;First, we must start Keycloak and configure a realm. The easiest way is to start Keycloak with Docker.&lt;br&gt;&#10;&lt;em&gt;Caution: This is just for development purposes. Don&amp;rsquo;t use the setup in production.&lt;/em&gt;&lt;/p&gt;&#10;&lt;pre class="EnlighterJSRAW" data-enlighter-language="shell"&gt;docker run -d -p 8180:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin \ &#10; quay.io/keycloak/keycloak:20.0.1 start-dev&lt;/pre&gt;&lt;p&gt;Now you can log in to the admin console: &lt;a href="http://localhost:8180/admin" target="_blank" rel="noopener noreferrer"&gt;http://localhost:8180/admin&lt;/a&gt; (user: admin, password: admin)&lt;/p&gt;</description></item></channel></rss>