Can you give me an example of a delegation mask that uses delegation_path?

Created by Vinith Bhandari, Modified on Sat, 03 Feb 2024 at 08:59 PM by Vinith Bhandari

As specified on the dev portal, it is an array of EORI (ID) of participants which form the path in the delegation chain. There is no example given there, but it is a full list of EORIs which determine the sequence of delegation path to aid Service Provider to traverse through that path for determining the authorisation. 

So to explain:        If EU.EORI.XX020 is service consumer and EU.EORI.XX002 is the Service Provider and EU.EORI.XX010 is the entitled party who gave rights to EU.EORI.XX0nn where nn > 10 until 20 (assuming that is the delegation path i.e. from 10-->20, just for this example, of course its not real) then the delegation_path array will contain EORIs from EU.EORI.XX010 -> EU.EORI.XX020.

That could be for example:
[EU.EORI.XX010, EU.EORI.XX013, EU.EORI.XX016, EU.EORI.XX020]
[EU.EORI.XX010, EU.EORI.XX015, EU.EORI.XX020]
[EU.EORI.XX010, EU.EORI.XX017, EU.EORI.XX013, EU.EORI.XX016, EU.EORI.XX020]... 
and the list can go on with any permutations and combinations. However, it could also be that due to privacy reasons, only n-1 delegator id is available, then it would be issuer of the issuer, issuer and subject (service consumer), in which case it's path is not conclusive and Service provider will have to use different mechanisms to traverse through the path (not specified). 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article