Interface DevServicesOpenFGAConfig
public interface DevServicesOpenFGAConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceTLS configuration to use for the DevServices OpenFGA instance. -
Method Summary
Modifier and TypeMethodDescriptionAuthentication configuration to use for the DevServices OpenFGA instance.JSON 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.enabled()If DevServices has been explicitly enabled or disabled.grpcPort()Optional fixed port the gRPC service will be bound to.httpPort()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.booleanshared()Indicates if the OpenFGA instance managed by Quarkus DevServices is shared.Timeout while creating the store/authorizationModelName of authorization store to create for DevServices.tls()TLS configuration to use for the DevServices OpenFGA instance.
-
Method 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
OptionalInt httpPort()Optional fixed port the HTTP service will be bound to.If not defined, the port will be chosen randomly.
-
grpcPort
OptionalInt grpcPort()Optional fixed port the gRPC service will be bound to.If not defined, the port will be chosen randomly.
-
playgroundPort
OptionalInt 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. -
authentication
DevServicesOpenFGAConfig.Authentication authentication()Authentication configuration to use for the DevServices OpenFGA instance. -
tls
TLS configuration to use for the DevServices OpenFGA instance. -
startupTimeout
Timeout while creating the store/authorizationModel
-