authorization-panel icon indicating copy to clipboard operation
authorization-panel copied to clipboard

use cases for anyOf, someOf

Open bblfish opened this issue 5 years ago • 0 comments

Our use case document does not at present have use cases for acp:allOf I think. There are examples in the acp document of allOf but those examples only ever seem to use one rule as noticed in issue 130 where I wrote

My guess is a use case of acp:allOf would be for giving access to someone over a certain age with proof of UK residence. An example of acp:anyOf would be to give access to members of two or more distinct clubs.

See also @emmettownsend's comments on Gitter.

allOf basically maps to intersection. anyOf maps to union so somebody who is a member of all specified groups e.g. members of a club, over18, married. Three groups . (in reality we would likely use claims for the over 18 and married in the future) Thats allOf anyOf would be more common. e.g. any person who is listed or a member of one or more of the specified groups. Thats probably the usual use case. noneOf is simply exclusion.

So an example where multiple credentials are needed would I think fit the bill.

bblfish avatar Nov 25 '20 12:11 bblfish