iotaledger / access-server

Apache License 2.0
14 stars 3 forks source link

[AXS-27] Policy Validator on PAP #50

Closed bernardoaraujor closed 4 years ago

bernardoaraujor commented 4 years ago

Policy Validator is currently on policy_validation, but must become part of PAP.

Code from policy_validation must be moved to:

access/pap/validator/
├── jsmn.c
├── jsmn.h
├── Makefile
├── policies_test_set
│   ├── policy_no1_nok_invalid.json
│   ├── policy_no1_nok.json
│   ├── policy_no1_ok_invalid.json
│   ├── policy_no1_ok.json
│   ├── policy_obligation_deny_invalid.json
│   ├── policy_obligation_deny.json
│   ├── policy_obligation_grant_invalid.json
│   └── policy_obligation_grant.json
├── validate.c
├── validator.c
└── validator.h

and exposed as part of PAP API on access/pap/pap.h

JIRA: AXS-27

strahinjagolic commented 4 years ago

Done in 780bbe904bebfcf3ae5ee90820abb0ceafcf24a7