Multi-party authentication via auth0 or daml

If we need 2 or more users belonging to an organization (represented as a single party in Daml) to approve a daml transaction initiated by a single party, could we do that via auth0 using something like this?

Multi-Party Authentication Flow - Auth0!

Or would it be possible to implement that via daml? Which approach would be better? I think if auth0 was able to perform this it would make the Daml code much simpler, as just a single party on ledger would have access to perform a transaction and the multi-party authorization would occur in the Auth0 side.

Further, if certain parties may need custom authentication rules, would this be easier to do in auth0, rather than having to encode these rules in daml for each possible party?

Hey tiw,

There’s 2 ways that you could read your question so depending on the one that you’re asking I could answer in 2 ways:

  1. If you’re asking if more than one user can approve a transaction as a single party then you can use a new feature called User Management. Here you would register one or more users and give them ‘act as’ rights for the same Daml party. This would mean that a Daml transaction would only need the approval of one of the users via that party.
  2. If you’re asking how to get the approval of more than one party on a transaction then you would need to give each user a party and have them all as signatories on the template / transaction.