refac
This commit is contained in:
1 parent
3d2fcef28f
commit
ed5d95f434
2 files changed
+2
-2
No files matched your search
@@ -313,7 +313,7 @@ JWT_EXPIRES_IN = PersistentConfig(
|
|||||||
####################################
|
####################################
|
||||||
|
|
||||||
ENABLE_OAUTH_PERSISTENT_CONFIG = (
|
ENABLE_OAUTH_PERSISTENT_CONFIG = (
|
||||||
os.environ.get("ENABLE_OAUTH_PERSISTENT_CONFIG", "True").lower() == "true"
|
os.environ.get("ENABLE_OAUTH_PERSISTENT_CONFIG", "False").lower() == "true"
|
||||||
)
|
)
|
||||||
|
|
||||||
ENABLE_OAUTH_SIGNUP = PersistentConfig(
|
ENABLE_OAUTH_SIGNUP = PersistentConfig(
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ async def get_tools(
|
|||||||
|
|
||||||
if auth_type == "bearer":
|
if auth_type == "bearer":
|
||||||
headers["Authorization"] = (
|
headers["Authorization"] = (
|
||||||
f"Bearer {tool_server_connection.get("key", "")}"
|
f"Bearer {tool_server_connection.get('key', '')}"
|
||||||
)
|
)
|
||||||
elif auth_type == "session":
|
elif auth_type == "session":
|
||||||
headers["Authorization"] = (
|
headers["Authorization"] = (
|
||||||
|
|||||||
Reference in new issue
Block a user