Policy Creation Request Endpoint

PropertyValue

Issue reference

#9+

Document status [draft/final]

Draft

NOTE: This page will become part of https://dev.ishare.eu/.

The Policy Creation Request Endpoint is an API endpoint that receives policy creation requests. The POST body accepts a JWT token: the Policy Creation Request Token.

Request

HTTP methods

  • POST

Headers

NameTypeDescription

Authorization

String

OAuth 2.0 authorization based on bearer token. MUST contain "Bearer " + access token value. How to retrieve the access token can be found at Access Token Endpoint section.

Content-Type

String

Defines request body content type. MUST be equal to application/jwt.

Body

The body contains a JWT.

Example

> Authorization: Bearer IIeDIrdnYo2ngwDQYJKoZIhvcNAQELBQAwSDEZMBcGA1UEAwwQaVNIQ
> Content-Type: application/jwt

POST /policies

eyJ4NWMiOlsiTUlJRWx6Q0NBbitnQXdJQkFnSUlKWGdMMHBKK0lvQXdEUVlKS29aSWh2Y05BUUVMQlFBd1NERVpNQmNHQTFVRUF3d1FhVk5JUVZKRlZHVnpkRU5CWDFSTVV6RU5NQXNHQTFVRUN3d0VWR1Z6ZERFUE1BMEdBMVVFQ2d3R2FWTklRVkpGTVFzd0NRWURWUVFHRXdKT1REQWVGdzB4T1RBeU1UVXhNVFEyTWpaYUZ3MHlNVEF5TVRReE1UUTJNalphTUZneEt6QXBCZ05WQkFNTUltbFRTRUZTUlNCVVpYTjBJRUYxZEdodmNtbDZZWFJwYjI0Z1VtVm5hWE4wY25reEhEQWFCZ05WQkFVVEUwVlZMa1ZQVWtrdVRrd3dNREF3TURBd01EUXhDekFKQmdOVkJBWVRBazVNTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUF4KzlvQUxqam9sMitMeVl3TnlSekpqZ0IyWlIxaUtQVzRiMHRmL041ZnkyZUFPS3dFTElOTkRxNlU5M00vdlVxWXBkVlVqV1VVZjQrZ3ZxTW00UGUwdUZhWDlXTEJ6WWQvMGNQcUlmd3l5ZDgzeGhlMk1MeEExSHpPUjJOQUQ1b0oxR1RoRXpWRzQybVlGc0hyVEJRa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X1dfX0.mdnNbj4b7u6YmCbzxk0Sn2wvceo9dG_7mikMcpxUG4JLf3Yd4dovUL10y_OaqLmSgxe7yYtacV5PPeOvZX4DFXv-aMxF_ueBTgqm1A8GCMfxd5gBO848tUmp0KAJJ-VlRGUDjxZIZ_CEvW8iAXjUhVsbwMDOrzRKvg6O3bBEfiqCowumygOk7oGaYwQP0eF21VvKiGyNAOOm6mw6a9WyCVmFSg3imjbF2H60HI8abnr3-0xGmRo4IuNSX57BplcaKo1GXrJTaTkOTF9vzKKXdrxvoBpnx2VcZqfI69UBGQHZOs4WA7noF3kEyhZR2pP3_8XGvClEExjn_R496m0aaQ

Response

Headers

NameTypeDescription

Content-Type

String

Defines response body content type. MUST be equal to application/json.

Body

The body consists of a JSON containing a message and a code.

HTTP status codes / responses

Response body does not contain policy information, only the result of the request.

200 OK: The requested policy is created.

401 Unauthorized: When Authorization header is either missing, invalid or token has already expired.

403 Forbidden: This error message is return when a policy creation request could not be processed after rules evaluation. The requested policy does not comply with the rules as set by the Entitled Party.

500 Server Error: When the Authorization Registry was unable to process the request

Example:

    {
      "message": "string",
      "code": 401
    }

Policy Request Token

This is a description of the token forms the body of the POST request to the /policies endpoint to request creation of a policy. The JWT must conform to the :ref:iSHARE JWT specifications<refJWT>.

    {
      "iss": "EU.EORI.NL000000004",
      "sub": "EU.EORI.NL000000001",
      "jti": "d8a7fd7465754a4a9117ee28f5b7fb60",
      "iat": 1591966224,
      "exp": 1591966254,
      "aud": "EU.EORI.NL000000001",
      "delegationEvidence": {
        "notBefore": 1541058939,
        "notOnOrAfter": 2147483647,
        "policyIssuer": "EU.EORI.NL000000005",
        "target": {
          "accessSubject": "EU.EORI.NL000000001"
        },
        "policySets": [
          {
            "maxDelegationDepth": 0,
            "target": {
              "environment": {
                "licenses": [
                  "ISHARE.0001"
                ]
              }
            },
            "policies": [
              {
                "target": {
                  "resource": {
                    "type": "GS1.CONTAINER",
                    "identifiers": [
                      "180621.CONTAINER-Z"
                    ],
                    "attributes": [
                      "GS1.CONTAINER.ATTRIBUTE.ETA",
                      "GS1.CONTAINER.ATTRIBUTE.WEIGHT"
                    ]
                  },
                  "environment": {
                    "serviceProviders": [
                      "EU.EORI.NL000000003"
                    ]
                  },
                  "actions": [
                    "ISHARE.READ",
                    "ISHARE.CREATE",
                    "ISHARE.UPDATE",
                    "ISHARE.DELETE"
                  ]
                },
                "rules": [
                  {
                    "effect": "Permit"
                  }
                ]
              }
            ]
          }
        ]
      }
    }
    ```

Last updated

Logo

Copyright © 2024 iSHARE Foundation