juks / iso-8583-socket-queue

ISO 8583 gateway
MIT License
194 stars 111 forks source link

Authentication on connection start #54

Closed sarriaroman closed 4 years ago

sarriaroman commented 4 years ago

Is there any way to send an authentication message when the connection is established? The provider I need to connect requires to send a Connector ID when the connection is established before start sending messages between the parts.

Thanks! Awesome job by the way :)

juks commented 4 years ago

Hi!

Auth (logon, logoff) messages are considered to be of x8xx message type (Network Management Message). The actual data elements may depend on specific host implementation.

sarriaroman commented 4 years ago

Sorry to bother, but do you have any examples of logon/logoff messages? I really want to use NodeJS for the implementation and I can't find information about it. Thanks :)

juks commented 4 years ago

Each system implemetation has its own data elements specification. You need to get the docs for the one you need to integrate with.

sarriaroman commented 4 years ago

Sorry about the delay on my answer. I need to send a message before the first message on the Channel with an identification number. If I don't send that number everything I send gets rejected by the other side because I'm not identified. Sorry about such a newbie question :(

juks commented 4 years ago

Please check this method: https://github.com/juks/iso-8583-socket-queue/blob/6e4ae5eff82af2dcc465bf84e60761bbeab23dfb/lib/iso8583/lib/logic/smartVista.js#L81

You now can define a packet that will be sent exactly each time the connection is being established.

sarriaroman commented 4 years ago

Awesome @juks ! I will try with that!