nclient / NClient

:dizzy: NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Apache License 2.0
44 stars 11 forks source link

Open Policy Agent integration #462

Open Kingmidas74 opened 2 years ago

Kingmidas74 commented 2 years ago

Can we think about some extension for RBAC on client side based on https://www.openpolicyagent.org/docs/latest/http-api-authorization/ ?

I suppose it will reduce http request and save net traffic.

Concept: User will create nclient instance with some rego-configuration (maybe loaded from third-party source). Before request execution nclient will check permission for current uri and credentials.

Kingmidas74 commented 2 years ago

@smolchanovsky

smolchanovsky commented 2 years ago

Sorry for the late reply I don't understand your suggestion. I'v used OPA like a proxy for backend API and I don't imagine how it can be applied to nclient. Could you describe concept with more details?