Skip to content

[Feature in SDK]: split method RemoteEventsFactory::createEvent #291

@mesilov

Description

@mesilov

Description

Problem

The current method RemoteEventsFactory::createEvent has a monolithic behavior:

  • create event object
  • validate its signature

We need to parse the event payload before, find member_id go to the repository, and get Bitrix24Account with the stored application_token. After that we pass application_token into RemoteEventsFactory::createEvent

Proposal

  1. mark RemoteEventsFactory::createEvent as deprecated
  2. create method RemoteEventsFactory::create to create event DTO
  3. create method validateSignature

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions