graphql-platform
graphql-platform copied to clipboard
Opa Authorization Handler for AspNetCore
Implement authorization handler delegating authz to an OPA (Open Policy Agent) REST API endpoint. The handler should send a POST
request to an OPA Data API endpoint.
@PascalSenn I think I am ready for a review.
Hey sorry for the wait ... we will do the review this week.
I will do a bit of reformatting so that it fits with the code-style. Looks great so far.
I have merged it now into the V13 branch aka main. I will go over the interfaces before we do a final release. I think a couple could be internal .... I will ship the new package with preview 74
Hey @queil in the test is a reference to a local server and all tests seem always to fail. Can you containerize this server? So we can package it with squadron for the tests?
Sure, it should be trivial. I'll take a look shortly.
Awesome thank you
OPA Server is already available as a Docker image. Does this work for you guys? https://hub.docker.com/r/openpolicyagent/opa/ Also, I'd probably should remove the embedded server from the tests though.
Yes, lets package that up in squadron and then we can use the docker image in the tests.
I will create an issue