mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
feat(oauth): update client parameters handling and improve oauth_params parsing
This commit is contained in:
@ -55,7 +55,7 @@ class ToolOAuthTenantClient(Base):
|
||||
|
||||
@property
|
||||
def oauth_params(self) -> dict:
|
||||
return cast(dict, json.loads(self.encrypted_oauth_params))
|
||||
return cast(dict, json.loads(self.encrypted_oauth_params or "{}"))
|
||||
|
||||
|
||||
class BuiltinToolProvider(Base):
|
||||
|
||||
Reference in New Issue
Block a user