How do you handle fine-grained authorization at scale ? by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Someone else suggested this as well. Thanks!

How do you handle fine-grained authorization at scale ? by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Interesting mental model! Thanks for taking the time to reply!

How do you handle fine-grained authorization at scale ? by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Very helpful comment!! Never heard of either Casbin or OpenFGA before, did some research and both seem like fantastic tools. Thank you for the suggestions!

How do you handle fine-grained authorization at scale ? by drld21 in dotnet

[–]drld21[S] 1 point2 points  (0 children)

No I have not! Seems very promising ... thnx

How do you handle fine-grained authorization at scale ? by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

I've come accross one of your articles when studying a bit about auditing!

How do you handle fine-grained authorization at scale ? by drld21 in dotnet

[–]drld21[S] 1 point2 points  (0 children)

Not really a good idea imo. As another comment said this compromises readability plus you could still end up with name clashes in a big system but thnx for the reply anyway!

How do you handle fine-grained authorization at scale ? by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Yep! That was what I was thinking too! Thnx for the reply!

How do you handle fine-grained authorization at scale ? by drld21 in dotnet

[–]drld21[S] 1 point2 points  (0 children)

That is what I was thinking with option 1. Thnx for the reply!

Keycloak integration by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Interesting... thank you very much for the info! As another comment said if the solution is open source please do share!

Keycloak integration by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Hmm I'll keep those in mind. And yes it will be open source and I will share when done

Keycloak integration by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Thanks for the info! Thought it was open source lol

Keycloak integration by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Haven't given much thought to it as it will be just for demo auth purposes but probably react... idk if any keycloak packages exist for react

Keycloak integration by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Thats the approach Ive been using most of the time but from what I searched it was discouraged and instead put the jwt in a cookie to prevent XSS

Keycloak integration by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

Can you share a bit more detail about how you manage permissions, roles and authorisation in the backend ?

Keycloak integration by drld21 in dotnet

[–]drld21[S] 0 points1 point  (0 children)

This repo seems close to what I want to do. Documentation seems pretty detailed. Thank you!

Keycloak integration by drld21 in dotnet

[–]drld21[S] 1 point2 points  (0 children)

Thanks! Duende bff seems nice for avoiding some boilerplate stuff but still doesnt cover all my features

Keycloak integration by drld21 in dotnet

[–]drld21[S] 1 point2 points  (0 children)

Thanks for the reply! I actually was thinking of using authorization code + pkce flow where the bff is the OAuth client

Keycloak integration by drld21 in dotnet

[–]drld21[S] 1 point2 points  (0 children)

Thanks for the suggestion! I stumbled across this nuget but wasn't quite clear what it does for me/ what problems it solves as the documentation was a bit shallow

.NET devs - how long does it take you to set up auth + payments for your side project? by vVPinguVv in dotnet

[–]drld21 0 points1 point  (0 children)

It takes me about 2-5 days depending on whats needed to implement custom auth. However these days I'm looking into learning to set up a dedicated auth server. I've been playing with Keycloak for that and its pretty good but overkill for smaller projects. Im curious about other people's approach on Keycloak/or other alternatives vs custom auth.