Class DevServicesOpenFGAConfig
java.lang.Object
io.quarkiverse.openfga.deployment.DevServicesOpenFGAConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionJSON formatted authorization model to upload during DevServices initialization.Location of JSON formatted authorization model file to upload during DevServices initialization.JSON formatted authorization tuples to upload during DevServices initialization.Location of JSON formatted authorization tuples file to upload during DevServices initialization.If DevServices has been explicitly enabled or disabled.Optional fixed port the gRPC service will be bound to.Optional fixed port the HTTP service will be bound to.The container image name to use, for container based DevServices providers.Optional fixed port the Playground service will be bound to.The value of thequarkus-dev-service-openfgalabel attached to the started container.booleanIndicates if the OpenFGA instance managed by Quarkus DevServices is shared.Name of authorization store to create for DevServices. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enabled
If DevServices has been explicitly enabled or disabled. DevServices is generally enabled by default, unless there is an existing configuration present.When DevServices is enabled Quarkus will attempt to automatically configure and start a database when running in 'dev' or 'test' mode.
-
imageName
The container image name to use, for container based DevServices providers. -
serviceName
The value of thequarkus-dev-service-openfgalabel attached to the started container. This property is used whensharedis set totrue. In this case, before starting a container, DevServices for OpenFGA looks for a container with thequarkus-dev-service-openfgalabel set to the configured value. If found, it will use this container instead of starting a new one, otherwise it starts a new container with thequarkus-dev-service-openfgalabel set to the specified value.This property is used when you need multiple shared OpenFGA instances.
-
httpPort
Optional fixed port the HTTP service will be bound to.If not defined, the port will be chosen randomly.
-
grpcPort
Optional fixed port the gRPC service will be bound to.If not defined, the port will be chosen randomly.
-
playgroundPort
Optional fixed port the Playground service will be bound to.If not defined, the port will be chosen randomly.
-
storeName
Name of authorization store to create for DevServices.Defaults to "dev".
-
authorizationModel
JSON formatted authorization model to upload during DevServices initialization. -
authorizationModelLocation
Location of JSON formatted authorization model file to upload during DevServices initialization.The location can be prefixed with
classpath:orfilesystem:to specify where the file will be read from; if not prefixed, it will be read from the classpath. -
authorizationTuples
JSON formatted authorization tuples to upload during DevServices initialization. -
authorizationTuplesLocation
Location of JSON formatted authorization tuples file to upload during DevServices initialization.The location can be prefixed with
classpath:orfilesystem:to specify where the file will be read from; if not prefixed, it will be read from the classpath.
-
-
Constructor Details
-
DevServicesOpenFGAConfig
public DevServicesOpenFGAConfig()
-