mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 01:26:33 +08:00
fix: update plugin verification logic to use unique identifier instea… (#28608)
This commit is contained in:
parent
751ce4ec41
commit
bb3aa0178d
@ -475,7 +475,7 @@ class TriggerProviderService:
|
|||||||
oauth_params = encrypter.decrypt(dict(tenant_client.oauth_params))
|
oauth_params = encrypter.decrypt(dict(tenant_client.oauth_params))
|
||||||
return oauth_params
|
return oauth_params
|
||||||
|
|
||||||
is_verified = PluginService.is_plugin_verified(tenant_id, provider_id.plugin_id)
|
is_verified = PluginService.is_plugin_verified(tenant_id, provider_controller.plugin_unique_identifier)
|
||||||
if not is_verified:
|
if not is_verified:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@ -499,7 +499,8 @@ class TriggerProviderService:
|
|||||||
"""
|
"""
|
||||||
Check if system OAuth client exists for a trigger provider.
|
Check if system OAuth client exists for a trigger provider.
|
||||||
"""
|
"""
|
||||||
is_verified = PluginService.is_plugin_verified(tenant_id, provider_id.plugin_id)
|
provider_controller = TriggerManager.get_trigger_provider(tenant_id=tenant_id, provider_id=provider_id)
|
||||||
|
is_verified = PluginService.is_plugin_verified(tenant_id, provider_controller.plugin_unique_identifier)
|
||||||
if not is_verified:
|
if not is_verified:
|
||||||
return False
|
return False
|
||||||
with Session(db.engine, expire_on_commit=False) as session:
|
with Session(db.engine, expire_on_commit=False) as session:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user