Commit d565e2d
committed
web: Allow CASProvider config to be any source
By defining ``env`` in ``CASProvider``, the superclass implementation
of ``is_configured`` requires the variables to be set in the actual
environment. Configuration can come from reading in ``/run/secrets``,
an ``.env`` file, or the environment.
This commit defines our own ``is_configured`` that checks ``CONFIG``
for the needed variables instead of relying on the superclass.
Additionally, add ``CHAINLIT_AUTH_SECRET`` to ``_NEEDS_ENVIRON``.
Ref: AP-4121 parent 2b84d21 commit d565e2d
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
0 commit comments