Class OpenFGAConfig
- java.lang.Object
-
- io.quarkiverse.openfga.runtime.config.OpenFGAConfig
-
@ConfigRoot(name="openfga", phase=RUN_TIME) public class OpenFGAConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleanalwaysResolveStoreIdAlways Treatstoreas the name of a store and resolve the store id at runtime.Optional<String>authorizationModelIdAuthorization model id for defaultAuthorizationModelClientbean.DurationconnectTimeoutTimeout to establish a connection with OpenFGA.static StringDEFAULT_CONNECT_TIMEOUTstatic StringDEFAULT_READ_TIMEOUTstatic StringNAMEOptional<List<String>>nonProxyHostsList of remote hosts that are not proxied when the client is configured to use a proxy.DurationreadTimeoutRequest timeout on OpenFGA.Optional<String>sharedKeyShared authentication key.StringstoreStore id or name for defaultStoreClientbean.OpenFGATLSConfigtlsTLS configuration.URLurlOpenFGA server URL.
-
Constructor Summary
Constructors Constructor Description OpenFGAConfig()
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
DEFAULT_CONNECT_TIMEOUT
public static final String DEFAULT_CONNECT_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_READ_TIMEOUT
public static final String DEFAULT_READ_TIMEOUT
- See Also:
- Constant Field Values
-
url
@ConfigItem public URL url
OpenFGA server URL.Example: http://openfga:8080
-
sharedKey
@ConfigItem public Optional<String> sharedKey
Shared authentication key.If none provided unauthenticated access will be attempted.
-
store
@ConfigItem public String store
Store id or name for defaultStoreClientbean.If the provided property does not match the OpenFGA store id format (
^[ABCDEFGHJKMNPQRSTVWXYZ0-9]{26}$) it will be treated as a store name and a matching store id will be resolved at runtime.- See Also:
alwaysResolveStoreId
-
alwaysResolveStoreId
@ConfigItem(defaultValue="false") public boolean alwaysResolveStoreId
Always Treatstoreas the name of a store and resolve the store id at runtime.If true, the store id will always be resolved at runtime regardless of the format of the
storeproperty. Otherwise, the store id will be resolved only whenstoredoes not match the OpenFGA store id format.- See Also:
store
-
authorizationModelId
@ConfigItem public Optional<String> authorizationModelId
Authorization model id for defaultAuthorizationModelClientbean.If none is provided the default bean will target the default authorization model for the store.
-
tls
@ConfigItem @ConfigDocSection public OpenFGATLSConfig tls
TLS configuration.
-
connectTimeout
@ConfigItem(defaultValue="5S") public Duration connectTimeout
Timeout to establish a connection with OpenFGA.
-
readTimeout
@ConfigItem(defaultValue="5S") public Duration readTimeout
Request timeout on OpenFGA.
-
nonProxyHosts
@ConfigItem public Optional<List<String>> nonProxyHosts
List of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose as the JVMnonProxyHostsconfiguration.Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com.
-
-