logoalt Hacker News

mooredstoday at 4:13 PM2 repliesview on HN

I posted this because using an authorization server like OpenFGA creates a real issue: syncing authorization related data.

There's identity data that needs to be synced (from an identity provider). This seemed like a cool open source solution for that. It's not enough, of course.

You also need to sync data between your application/domain and the authorization server to have accurate authorization decisions. But other than using the authorization server's SDK, I don't think there's a general solution to that problem.

Disclaimers: I have not used this software. I don't know if it is maintained. I also work for a company that has competitive offerings for both Keycloak and OpenFGA.


Replies

aaguiarztoday at 9:13 PM

Actually, you don't _need_ to sync data, you can send it contextually too https://openfga.dev/docs/interacting/contextual-tuples.

Of course, if you end up sending all data contextually, you are better suited with a different solution that does not require a server roundtrip like Cedar.

This repo compares differences between the OpenFGA approach and the Cedar approach https://github.com/openfga/openfga-cedar-comparison

MidnightRider39today at 5:49 PM

In your view why is using the AuthZ server SDK not a good solution - or maybe other way around, what would be a more general solution?

show 1 reply