File tree Expand file tree Collapse file tree
data_rentgen/server/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ DATA_RENTGEN__KAFKA__COMPRESSION=zstd
3737DATA_RENTGEN__UI__API_BROWSER_URL=http://localhost:8000
3838
3939# Session
40+ DATA_RENTGEN__SERVER__SESSION__ENABLED=True
4041DATA_RENTGEN__SERVER__SESSION__SECRET_KEY=session_secret_key
4142
4243# Keycloak Auth
@@ -54,8 +55,8 @@ DATA_RENTGEN__AUTH__PROVIDER=data_rentgen.server.providers.auth.dummy_provider.D
5455DATA_RENTGEN__AUTH__ACCESS_TOKEN__SECRET_KEY=access_key_secret
5556
5657# Personal Tokens
57- export DATA_RENTGEN__AUTH__PERSONAL_TOKENS__ENABLED=True
58- export DATA_RENTGEN__AUTH__PERSONAL_TOKENS__SECRET_KEY=pat_secret
58+ DATA_RENTGEN__AUTH__PERSONAL_TOKENS__ENABLED=True
59+ DATA_RENTGEN__AUTH__PERSONAL_TOKENS__SECRET_KEY=pat_secret
5960
6061# Cors
6162DATA_RENTGEN__SERVER__CORS__ENABLED=True
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export DATA_RENTGEN__SERVER__DEBUG=True
1616export DATA_RENTGEN__UI__API_BROWSER_URL = http://localhost:8000
1717
1818# Session
19+ export DATA_RENTGEN__SERVER__SESSION__ENABLED = True
1920export DATA_RENTGEN__SERVER__SESSION__SECRET_KEY = session_secret_key
2021
2122# Keycloak Auth
Original file line number Diff line number Diff line change 1212class SessionSettings (BaseModel ):
1313 """Session Middleware Settings.
1414
15- Required for :ref:`keycloak- auth-provider `.
15+ Required for :ref:`auth-server-keycloak `.
1616
1717 See `SessionMiddleware <https://www.starlette.io/middleware/#sessionmiddleware>`_ documentation.
1818
@@ -75,7 +75,7 @@ class SessionSettings(BaseModel):
7575
7676 model_config = ConfigDict (extra = "allow" )
7777
78- @field_validator ("secret_key" )
78+ @field_validator ("secret_key" , mode = "after" )
7979 @classmethod
8080 def _validate_secret_key (cls , value : SecretStr | None , info : ValidationInfo ) -> SecretStr | None :
8181 if not value and info .data .get ("enabled" ):
You can’t perform that action at this time.
0 commit comments