yasudacloud / strapi-plugin-sso

MIT License
89 stars 61 forks source link

Issue with triggerWebHook function #45

Closed PhuocMinhcs closed 10 months ago

PhuocMinhcs commented 10 months ago

I got the issue after login with Azure AD

Untitled And I found the root cause related to this function triggerWebHook at strapi-plugin-sso\server\services\oauth.js line 57

const {ENTRY_CREATE} = strapi.webhookStore.allowedEvents;

the strapi.webhookStore.allowedEvents return undefined

Suggestion: using the event name 'entry.create' instead like this at line 60

strapi.eventHub.emit('entry.create' /*ENTRY_CREATE*/, { model: modelDef.modelName, entry: sanitizedEntity, });

My Strapi version: "@strapi/strapi": "4.10.5"

yasudacloud commented 10 months ago

@PhuocMinhcs Thanks for the report. Please wait as we investigate.

yasudacloud commented 10 months ago

@PhuocMinhcs Sorry for the delay, we fixed this issue in version 0.4.4. Please contact us if you have any further questions.

PhuocMinhcs commented 10 months ago

@yasudacloud Nice, thank you for your notice!