Skip to content

Commit

Permalink
configs
Browse files Browse the repository at this point in the history
  • Loading branch information
daveads committed Oct 21, 2024
1 parent b84bd88 commit 0778841
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/opal-client/opal_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def __init__(
inline_cedar_enabled,
inline_opa_options,
inline_cedar_options,
inline_openfga_options,
)

custom_ssl_context = get_custom_ssl_context()
Expand Down Expand Up @@ -197,6 +198,7 @@ def _init_engine_runner(
self,
inline_opa_enabled: bool,
inline_cedar_enabled: bool,
inline_openfga_enabled: bool,
inline_opa_options: Optional[OpaServerOptions] = None,
inline_cedar_options: Optional[CedarServerOptions] = None,
inline_openfga_options: Optional[OpenFGAServerOptions] = None,
Expand Down
2 changes: 2 additions & 0 deletions packages/opal-client/opal_client/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ class OpalClientConfig(Confi):

#openfga
OPENFGA_URL = confi.str("OPENFGA_URL", "http://localhost:8080")
OPENFGA_STORE_ID = confi.str("OPENFGA_STORE_ID", None, description="The OpenFGA store ID to use")

POLICY_STORE_AUTH_TYPE = confi.enum(
"POLICY_STORE_AUTH_TYPE", PolicyStoreAuth, PolicyStoreAuth.NONE
)

POLICY_STORE_AUTH_TOKEN = confi.str(
"POLICY_STORE_AUTH_TOKEN",
None,
Expand Down

0 comments on commit 0778841

Please sign in to comment.