All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Keycloak OpenFGA Event Publisher: Integration Extension for Fine-Grained Authorization

By

mooreds

2mo ago· 5 min readenCode

Summary

This article describes a Keycloak extension called 'Keycloak OpenFGA Event Publisher' that enables integration between Keycloak (an open-source identity and access management solution) and OpenFGA (an open-source fine-grained authorization system). The extension implements an Event Listener Provider to detect identity events in Keycloak and publish them to OpenFGA servers using the OpenFGA Java SDK. This allows for real-time synchronization of authorization data between the two systems, supporting fine-grained authorization (FGA) using ReBAC (Relationship-Based Access Control) principles inspired by Google's Zanzibar paper.

Key quotes

· 4 pulled
This is a Keycloak extension that implements an Event Listener Provider to detect Identity events and publish them to the OpenFGA server over HTTP, thanks to the OpenFGA Java SDK.
OpenFGA is an open source solution for Fine-Grained Authorization that applies the concept of ReBAC (created by the Auth0 inspired by Zanzibar).
This extension allows for direct integration between Keycloak and OpenFGA.
The extension follows these steps: Listens to the following Keycloak events based on his own Identity, Role and Group model (e.g., User Role Assignment, Role to Role Assignment, etc).
Snippet from the RSS feed
Keycloak OpenFGA Event Publisher enables event integration between Keycloak and OpenFGA for Fine-Grained Authorization (FGA) using the OpenFGA SDK. - embesozzi/keycloak-openfga-event-publisher

You might also wanna read