alexdean / as2

AS2 protocol implementation in Ruby
https://rubygems.org/gems/as2
MIT License
3 stars 2 forks source link

improve MDN construction #25

Closed alexdean closed 1 year ago

alexdean commented 1 year ago

have experienced reports of partners being unable to verify MDNs created by our code. PR incorporates several fixes.

for backards-compatibility, the existing MDN format will remain the default even though it has known defects. the new format will be an opt-in option on a per-partner basis.

new configuration

partner = As2::Config::Partner.new
partner.mdn_format = 'v0' # (or 'v1')

As2::Server.valid_mdn_formats
# => ["v0", "v1"]

formats

v0 format

v1 format